]> git.sesse.net Git - ffmpeg/commit
AVFrame: add an opaque_ref field
authorwm4 <nfxjfg@googlemail.com>
Thu, 2 Feb 2017 10:27:54 +0000 (11:27 +0100)
committerAnton Khirnov <anton@khirnov.net>
Sat, 11 Feb 2017 10:37:45 +0000 (11:37 +0100)
commit04f3bd349651694f30feeb8c4ed9bc58106fca54
treed48fd34fb20bcc877e24a4bb6fd7f4cff10edb67
parent4de220d2e3751c459f8739a08ac6ca52e63eba30
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: Anton Khirnov <anton@khirnov.net>
doc/APIchanges
libavutil/frame.c
libavutil/frame.h
libavutil/version.h