Skip to content
Snippets Groups Projects
Commit e3af49b1 authored by wm4's avatar wm4
Browse files

AVFrame: add an opaque_ref field


This is an extended version of the AVFrame.opaque field, which can be
used to attach arbitrary user information to an AVFrame.

The usefulness of the opaque field is rather limited, because it can
store only up to 32 bits of information (or 64 bit on 64 bit systems).
It's not possible to set this field to a memory allocation, because
there is no way to deallocate it correctly.

The opaque_ref field circumvents this by letting the user set an
AVBuffer, which makes the user data refcounted.

Signed-off-by: default avatarAnton Khirnov <anton@khirnov.net>

Merges Libav commit 04f3bd34.
parent 2b9f92fc
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment