}
/* 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) {
.flags= AVFMT_GENERIC_INDEX,
.extensions = "flac",
.value = CODEC_ID_FLAC,
+ .metadata_conv = ff_vorbiscomment_metadata_conv,
};