Commit a27c53b2 authored by jbr's avatar jbr

seek backwards 4 bytes if 'fLaC' marker is not found


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18086 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4025fcc7
......@@ -50,8 +50,10 @@ static int flac_read_header(AVFormatContext *s,
}
/* if fLaC marker is not found, assume there is no header */
if (get_le32(s->pb) != MKTAG('f','L','a','C'))
if (get_le32(s->pb) != MKTAG('f','L','a','C')) {
url_fseek(s->pb, -4, SEEK_CUR);
return 0;
}
/* process metadata blocks */
while (!url_feof(s->pb) && !metadata_last) {
......
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