Commit c426e59d authored by bcoudurier's avatar bcoudurier

break if error in header so it can output already decoded frames

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12999 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4bbec39d
...@@ -2591,10 +2591,8 @@ static int decode_frame_mp3on4(AVCodecContext * avctx, ...@@ -2591,10 +2591,8 @@ static int decode_frame_mp3on4(AVCodecContext * avctx,
header = (AV_RB32(buf) & 0x000fffff) | s->syncword; // patch header header = (AV_RB32(buf) & 0x000fffff) | s->syncword; // patch header
if (ff_mpa_check_header(header) < 0) { // Bad header, discard block if (ff_mpa_check_header(header) < 0) // Bad header, discard block
*data_size = 0; break;
return buf_size;
}
ff_mpegaudio_decode_header(m, header); ff_mpegaudio_decode_header(m, header);
out_size += mp_decode_frame(m, outptr, buf, fsize); out_size += mp_decode_frame(m, outptr, buf, fsize);
......
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