Commit e0ee6bd5 authored by michael's avatar michael

If metadata has been parsed goto end instead of trying to

decorrelate and output somehing nonexistng.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14278 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4825fa89
......@@ -632,8 +632,9 @@ static int flac_decode_frame(AVCodecContext *avctx,
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);
if((tmp & 0xFFFE) != 0xFFF8){
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;
return -1;
}
}
#if 0
......
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