decode: add a method for attaching lavc-internal data to frames

Multimedia / Libav - Anton Khirnov [khirnov.net] - 26 July 2017 17:23 EDT

Use the AVFrame.opaque_ref field. The original user's opaque_ref is wrapped in the lavc struct and then unwrapped before the frame is returned to the caller.

This new struct will be useful in the following commits.

359a8a3 decode: add a method for attaching lavc-internal data to frames
libavcodec/decode.c | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++
libavcodec/decode.h | 13 ++++++++++++
2 files changed, 70 insertions(+)

Upstream: git.libav.org


  • Share