summaryrefslogtreecommitdiff
path: root/ffmpeg/libavcodec/vda.h
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2013-12-29 12:19:38 +0000
committerTim Redfern <tim@eclectronics.org>2013-12-29 12:19:38 +0000
commitf7813a5324be39d13ab536c245d15dfc602a7849 (patch)
treefad99148b88823d34a5df2f0a25881a002eb291b /ffmpeg/libavcodec/vda.h
parentb7a5a477b8ff4d4e3028b9dfb9a9df0a41463f92 (diff)
basic type mechanism working
Diffstat (limited to 'ffmpeg/libavcodec/vda.h')
-rw-r--r--ffmpeg/libavcodec/vda.h11
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. */