mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
If metadata has been parsed goto end instead of trying to
decorrelate and output somehing nonexistng. Originally committed as revision 14278 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
8d8d2b7391
commit
2b4b8c824e
@ -632,8 +632,9 @@ static int flac_decode_frame(AVCodecContext *avctx,
|
|||||||
|
|
||||||
init_get_bits(&s->gb, buf, buf_size*8);
|
init_get_bits(&s->gb, buf, buf_size*8);
|
||||||
|
|
||||||
if (!metadata_parse(s))
|
if(metadata_parse(s))
|
||||||
{
|
goto end;
|
||||||
|
|
||||||
tmp = show_bits(&s->gb, 16);
|
tmp = show_bits(&s->gb, 16);
|
||||||
if((tmp & 0xFFFE) != 0xFFF8){
|
if((tmp & 0xFFFE) != 0xFFF8){
|
||||||
av_log(s->avctx, AV_LOG_ERROR, "FRAME HEADER not here\n");
|
av_log(s->avctx, AV_LOG_ERROR, "FRAME HEADER not here\n");
|
||||||
@ -648,7 +649,6 @@ static int flac_decode_frame(AVCodecContext *avctx,
|
|||||||
s->bitstream_index=0;
|
s->bitstream_index=0;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
|
Loading…
Reference in New Issue
Block a user