# HG changeset patch # User jbr # Date 1237596554 0 # Node ID 9a8c5a8c64ea9b4b41323ce2df2b320e6bce8eef # Parent 0c9699c40b660be8558369184c6ee3ea52f67666 seek backwards 4 bytes if 'fLaC' marker is not found diff -r 0c9699c40b66 -r 9a8c5a8c64ea flacdec.c --- a/flacdec.c Fri Mar 20 17:23:45 2009 +0000 +++ b/flacdec.c Sat Mar 21 00:49:14 2009 +0000 @@ -50,8 +50,10 @@ } /* 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) {