Browse Source

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

Originally committed as revision 18086 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Justin Ruggles 16 years ago
parent
commit
29b0d168e6
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      libavformat/flacdec.c

+ 3
- 1
libavformat/flacdec.c View File

@@ -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) {


Loading…
Cancel
Save