Commit f4f236af authored by jbr's avatar jbr

ac3dec: skip decoding and use error concealment for remaining blocks in

the frame after an error occurs.



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15987 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 8a2916ae
...@@ -1308,6 +1308,7 @@ static int ac3_decode_frame(AVCodecContext * avctx, void *data, int *data_size, ...@@ -1308,6 +1308,7 @@ static int ac3_decode_frame(AVCodecContext * avctx, void *data, int *data_size,
const float *output[s->out_channels]; const float *output[s->out_channels];
if (!err && decode_audio_block(s, blk)) { if (!err && decode_audio_block(s, blk)) {
av_log(avctx, AV_LOG_ERROR, "error decoding the audio block\n"); av_log(avctx, AV_LOG_ERROR, "error decoding the audio block\n");
err = 1;
} }
for (ch = 0; ch < s->out_channels; ch++) for (ch = 0; ch < s->out_channels; ch++)
output[ch] = s->output[ch]; output[ch] = s->output[ch];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment