changeset 8249:5057047bcc52 libavcodec

ac3dec: skip decoding and use error concealment for remaining blocks in the frame after an error occurs.
author jbr
date Wed, 03 Dec 2008 03:34:31 +0000
parents 45cfe1d44e86
children cf4d575b1982
files ac3dec.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ac3dec.c	Wed Dec 03 01:14:06 2008 +0000
+++ b/ac3dec.c	Wed Dec 03 03:34:31 2008 +0000
@@ -1308,6 +1308,7 @@
         const float *output[s->out_channels];
         if (!err && decode_audio_block(s, blk)) {
             av_log(avctx, AV_LOG_ERROR, "error decoding the audio block\n");
+            err = 1;
         }
         for (ch = 0; ch < s->out_channels; ch++)
             output[ch] = s->output[ch];