[FFmpeg-cvslog] ac3dec: set decode_error_flags field in ac3 codec

Marton Balint git at videolan.org
Sat Jul 21 05:49:11 CEST 2012


ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Fri Jul 20 23:28:03 2012 +0200| [b99e9ee93896356539c666a1e97aa6c89863f6cf] | committer: Michael Niedermayer

ac3dec: set decode_error_flags field in ac3 codec

Signed-off-by: Marton Balint <cus at passwd.hu>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b99e9ee93896356539c666a1e97aa6c89863f6cf
---

 libavcodec/ac3dec.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c
index 4ac3ea5..2cd07c3 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;
 



More information about the ffmpeg-cvslog mailing list