diff options
author | John Stebbins <stebbins@jetheaddev.com> | 2013-10-11 09:51:50 -0700 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-10-31 20:14:14 +0100 |
commit | 28096e0a806e57376541e6222d315619906e3c55 (patch) | |
tree | a3d2c34efc7bfc08e00314c010e1f20fc7cf84cf /libavutil/frame.h | |
parent | 9af7a8523a6bb517834ebed36093bdab11a8b38e (diff) | |
download | ffmpeg-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/frame.h')
-rw-r--r-- | libavutil/frame.h | 10 |
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; /** |