fix header parsing, the NULL terminated File ID is followed by a space
authorStefan Gehrer <stefan.gehrer@gmx.de>
Sat, 24 Jan 2009 08:06:43 +0000 (08:06 +0000)
committerStefan Gehrer <stefan.gehrer@gmx.de>
Sat, 24 Jan 2009 08:06:43 +0000 (08:06 +0000)
Originally committed as revision 16738 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/iss.c

index 4a163184812d4be6fc6ec90ad13e8271d21fba04..c722f62d2bf79562f80474bc22155628a65695b8 100644 (file)
@@ -51,6 +51,9 @@ static void get_token(ByteIOContext *s, char *buf, int maxlen)
             buf[i++] = c;
     }
 
+    if(!c)
+        get_byte(s);
+
     buf[i] = 0; /* Ensure null terminated, but may be truncated */
 }