提交 169203c1 编写于 作者: B Baptiste Coudurier

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

Originally committed as revision 12999 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 41b8800f
......@@ -2591,10 +2591,8 @@ static int decode_frame_mp3on4(AVCodecContext * avctx,
header = (AV_RB32(buf) & 0x000fffff) | s->syncword; // patch header
if (ff_mpa_check_header(header) < 0) { // Bad header, discard block
*data_size = 0;
return buf_size;
}
if (ff_mpa_check_header(header) < 0) // Bad header, discard block
break;
ff_mpegaudio_decode_header(m, header);
out_size += mp_decode_frame(m, outptr, buf, fsize);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册