ac3dec: set decode_error_flags field in ac3 codec
authorMarton Balint <cus@passwd.hu>
Fri, 20 Jul 2012 21:28:03 +0000 (23:28 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 21 Jul 2012 03:48:31 +0000 (05:48 +0200)
Signed-off-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/ac3dec.c

index 4ac3ea5..2cd07c3 100644 (file)
@@ -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;