[FFmpeg-devel] [PATCHv3 2/2] ac3dec: set decode_error_flags field in ac3 codec

Marton Balint cus at passwd.hu
Fri Jul 20 23:28:03 CEST 2012


Signed-off-by: Marton Balint <cus at passwd.hu>
---
 libavcodec/ac3dec.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

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;
 
-- 
1.7.3.4



More information about the ffmpeg-devel mailing list