mirror of https://github.com/FFmpeg/FFmpeg.git
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: Anton Khirnov <anton@khirnov.net>pull/273/head
parent
4de220d2e3
commit
04f3bd3496
4 changed files with 25 additions and 2 deletions
Loading…
Reference in new issue