aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ac3dec.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2008-12-03 03:34:31 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2008-12-03 03:34:31 +0000
commitaf2272b2093d3df16575b29a5193a1663b97de71 (patch)
tree6ec74a74dd8365a7dd7008330e4cf2efdb3ece39 /libavcodec/ac3dec.c
parent7a2efd2e447d5e7c7c0af61417a838b042fb7d0a (diff)
downloadffmpeg-af2272b2093d3df16575b29a5193a1663b97de71.tar.gz
ac3dec: skip decoding and use error concealment for remaining blocks in
the frame after an error occurs. Originally committed as revision 15987 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ac3dec.c')
-rw-r--r--libavcodec/ac3dec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c
index 3e8b0b5afc..208d87aeb2 100644
--- a/libavcodec/ac3dec.c
+++ b/libavcodec/ac3dec.c
@@ -1308,6 +1308,7 @@ static int ac3_decode_frame(AVCodecContext * avctx, void *data, int *data_size,
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];