diff options
Diffstat (limited to 'ffmpeg/libavcodec/vda.h')
| -rw-r--r-- | ffmpeg/libavcodec/vda.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ffmpeg/libavcodec/vda.h b/ffmpeg/libavcodec/vda.h index 281785f..b3d6399 100644 --- a/ffmpeg/libavcodec/vda.h +++ b/ffmpeg/libavcodec/vda.h @@ -134,6 +134,17 @@ struct vda_context { * - decoding: Set/Unset by libavcodec. */ int priv_allocated_size; + + /** + * Use av_buffer to manage buffer. + * When the flag is set, the CVPixelBuffers returned by the decoder will + * be released automatically, so you have to retain them if necessary. + * Not setting this flag may cause memory leak. + * + * encoding: unused + * decoding: Set by user. + */ + int use_ref_buffer; }; /** Create the video decoder. */ |
