aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Gehrer <stefan.gehrer@gmx.de>2009-01-24 08:06:43 +0000
committerStefan Gehrer <stefan.gehrer@gmx.de>2009-01-24 08:06:43 +0000
commitc6f79c3e0b7db8b142039081ee56000f1a1e8a5c (patch)
tree74c65cc5e91132afa5460ebc01a207f595fda3b3
parentcb760a4790c6d00b4ae44ad7b2c596850ac1cdb2 (diff)
downloadffmpeg-c6f79c3e0b7db8b142039081ee56000f1a1e8a5c.tar.gz
fix header parsing, the NULL terminated File ID is followed by a space
Originally committed as revision 16738 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/iss.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/iss.c b/libavformat/iss.c
index 4a16318481..c722f62d2b 100644
--- a/libavformat/iss.c
+++ b/libavformat/iss.c
@@ -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 */
}