[FFmpeg-cvslog] r18086 - trunk/libavformat/flacdec.c

jbr subversion
Sat Mar 21 01:49:14 CET 2009


Author: jbr
Date: Sat Mar 21 01:49:14 2009
New Revision: 18086

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

Modified:
   trunk/libavformat/flacdec.c

Modified: trunk/libavformat/flacdec.c
==============================================================================
--- trunk/libavformat/flacdec.c	Sat Mar 21 01:48:07 2009	(r18085)
+++ trunk/libavformat/flacdec.c	Sat Mar 21 01:49:14 2009	(r18086)
@@ -50,8 +50,10 @@ static int flac_read_header(AVFormatCont
     }
 
     /* 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) {




More information about the ffmpeg-cvslog mailing list