aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorJohn Stebbins <stebbins@jetheaddev.com>2013-10-11 09:51:50 -0700
committerAnton Khirnov <anton@khirnov.net>2013-10-31 20:14:14 +0100
commit28096e0a806e57376541e6222d315619906e3c55 (patch)
treea3d2c34efc7bfc08e00314c010e1f20fc7cf84cf /libavutil
parent9af7a8523a6bb517834ebed36093bdab11a8b38e (diff)
downloadffmpeg-28096e0a806e57376541e6222d315619906e3c55.tar.gz
h264: wait for initial complete frame before outputing frames
This can be optionally disabled whith the "output_corrupt" flags option. When in "output_corrupt" mode, incomplete frames are signalled through AVFrame.flags FRAME_FLAG_INCOMPLETE_FRAME. Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/frame.h10
-rw-r--r--libavutil/version.h2
2 files changed, 11 insertions, 1 deletions
diff --git a/libavutil/frame.h b/libavutil/frame.h
index bbff3d11dc..449a6b799b 100644
--- a/libavutil/frame.h
+++ b/libavutil/frame.h
@@ -350,6 +350,16 @@ typedef struct AVFrame {
AVFrameSideData **side_data;
int nb_side_data;
+
+/**
+ * The frame data may be corrupted, e.g. due to decoding errors.
+ */
+#define AV_FRAME_FLAG_CORRUPT (1 << 0)
+
+ /**
+ * Frame flags, a combination of AV_FRAME_FLAG_*
+ */
+ int flags;
} AVFrame;
/**
diff --git a/libavutil/version.h b/libavutil/version.h
index 635055fb14..aa13a0fa97 100644
--- a/libavutil/version.h
+++ b/libavutil/version.h
@@ -37,7 +37,7 @@
*/
#define LIBAVUTIL_VERSION_MAJOR 52
-#define LIBAVUTIL_VERSION_MINOR 16
+#define LIBAVUTIL_VERSION_MINOR 17
#define LIBAVUTIL_VERSION_MICRO 0
#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \