diff options
author | wm4 <nfxjfg@googlemail.com> | 2017-02-02 11:27:54 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2017-02-11 11:37:45 +0100 |
commit | 04f3bd349651694f30feeb8c4ed9bc58106fca54 (patch) | |
tree | d48fd34fb20bcc877e24a4bb6fd7f4cff10edb67 /doc | |
parent | 4de220d2e3751c459f8739a08ac6ca52e63eba30 (diff) | |
download | ffmpeg-streaming-04f3bd349651694f30feeb8c4ed9bc58106fca54.zip ffmpeg-streaming-04f3bd349651694f30feeb8c4ed9bc58106fca54.tar.gz |
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>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/APIchanges | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/APIchanges b/doc/APIchanges index 9b9f46e..e7a0b14 100644 --- a/doc/APIchanges +++ b/doc/APIchanges @@ -13,6 +13,9 @@ libavutil: 2015-08-28 API changes, most recent first: +2017-02-11 - xxxxxxx - lavu 55.32.0 - frame.h + Add AVFrame.opaque_ref. + 2017-02-xx - xxxxxxx - lavu 55.31.1 - frame.h Allow passing the value of 0 (meaning "automatic") as the required alignment to av_frame_get_buffer(). |