[FFmpeg-devel] [PATCH 2/2] ac3dec: set decode_error field in ac3 codec

Marton Balint cus at passwd.hu
Sun Jul 8 18:12:09 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..c63354f 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 = err;
+
     *got_frame_ptr   = 1;
     *(AVFrame *)data = s->frame;
 
-- 
1.7.3.4



More information about the ffmpeg-devel mailing list