summaryrefslogtreecommitdiff
path: root/libavutil/frame.h
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/frame.h
parent9af7a8523a6bb517834ebed36093bdab11a8b38e (diff)
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/frame.h')
-rw-r--r--libavutil/frame.h10
1 files changed, 10 insertions, 0 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;
/**