diff options
author | Marton Balint <cus@passwd.hu> | 2012-07-20 23:28:02 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-07-21 05:48:31 +0200 |
commit | 016a4720094a9ffa9d97e20a8d25dd4642732a58 (patch) | |
tree | c41ea47734e49980a876d02da97835d4d27ad265 /libavcodec/avcodec.h | |
parent | 296c1b6bd1fa41b2c09dd378a991e3cde0f5d6d3 (diff) | |
download | ffmpeg-016a4720094a9ffa9d97e20a8d25dd4642732a58.tar.gz |
avcodec: add decode_error_flags field to AVFrame
Signed-off-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 6711b78d3d..dda46f8e90 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -1323,6 +1323,19 @@ typedef struct AVFrame { * - decoding: Set by libavcodec. */ AVDictionary *metadata; + + /** + * decode error flags of the frame, set to a combination of + * FF_DECODE_ERROR_xxx flags if the decoder produced a frame, but there + * were errors during the decoding. + * Code outside libavcodec should access this field using: + * av_frame_get_decode_error_flags(frame) + * - encoding: unused + * - decoding: set by libavcodec, read by user. + */ + int decode_error_flags; +#define FF_DECODE_ERROR_INVALID_BITSTREAM 1 +#define FF_DECODE_ERROR_MISSING_REFERENCE 2 } AVFrame; /** @@ -1342,6 +1355,8 @@ int av_frame_get_sample_rate (const AVFrame *frame); void av_frame_set_sample_rate (AVFrame *frame, int val); AVDictionary *av_frame_get_metadata (const AVFrame *frame); void av_frame_set_metadata (AVFrame *frame, AVDictionary *val); +int av_frame_get_decode_error_flags (const AVFrame *frame); +void av_frame_set_decode_error_flags (AVFrame *frame, int val); struct AVCodecInternal; |