aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mpegvideo.h
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2012-12-12 16:42:05 +0100
committerJanne Grunau <janne-libav@jannau.net>2012-12-13 21:02:42 +0100
commit6a27ae28f9bde981e85c82cf5bf42c5f43fb6f13 (patch)
treed572b54b3b0cedc247f28dfc9fa2b94929c71483 /libavcodec/mpegvideo.h
parentbd255f9feb4deea4c990e582f0ba3b90d7b64b4c (diff)
downloadandroid_external_ffmpeg-6a27ae28f9bde981e85c82cf5bf42c5f43fb6f13.tar.gz
android_external_ffmpeg-6a27ae28f9bde981e85c82cf5bf42c5f43fb6f13.tar.bz2
android_external_ffmpeg-6a27ae28f9bde981e85c82cf5bf42c5f43fb6f13.zip
mpegvideo: treat delayed pictures as used
This requires to move the avcodec_default_free_buffers() call to ff_MPV_common_end() since otherwise delayed pictures would get freed during a size change.
Diffstat (limited to 'libavcodec/mpegvideo.h')
-rw-r--r--libavcodec/mpegvideo.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo.h b/libavcodec/mpegvideo.h
index bd4caa3e7b..6c9a7cbda6 100644
--- a/libavcodec/mpegvideo.h
+++ b/libavcodec/mpegvideo.h
@@ -79,6 +79,12 @@ enum OutputFormat {
#define EXT_START_CODE 0x000001b5
#define USER_START_CODE 0x000001b2
+/**
+ * Value of Picture.reference when Picture is not a reference picture, but
+ * is held for delayed output.
+ */
+#define DELAYED_PIC_REF 4
+
struct MpegEncContext;
/**