diff options
author | Marton Balint <cus@passwd.hu> | 2012-07-20 23:28:03 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-07-21 05:48:31 +0200 |
commit | b99e9ee93896356539c666a1e97aa6c89863f6cf (patch) | |
tree | 3c0f6388eb8a0ec73cb844b078371b68ff5cb67d /libavcodec/ac3dec.c | |
parent | 016a4720094a9ffa9d97e20a8d25dd4642732a58 (diff) | |
download | ffmpeg-b99e9ee93896356539c666a1e97aa6c89863f6cf.tar.gz |
ac3dec: set decode_error_flags field in ac3 codec
Signed-off-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/ac3dec.c')
-rw-r--r-- | libavcodec/ac3dec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c index 4ac3ea5cf1..2cd07c3534 100644 --- a/libavcodec/ac3dec.c +++ b/libavcodec/ac3dec.c @@ -1433,6 +1433,8 @@ static int ac3_decode_frame(AVCodecContext * avctx, void *data, } } + s->frame.decode_error_flags = err ? FF_DECODE_ERROR_INVALID_BITSTREAM : 0; + *got_frame_ptr = 1; *(AVFrame *)data = s->frame; |