diff options
author | Stefan Gehrer <stefan.gehrer@gmx.de> | 2009-01-24 08:06:43 +0000 |
---|---|---|
committer | Stefan Gehrer <stefan.gehrer@gmx.de> | 2009-01-24 08:06:43 +0000 |
commit | c6f79c3e0b7db8b142039081ee56000f1a1e8a5c (patch) | |
tree | 74c65cc5e91132afa5460ebc01a207f595fda3b3 | |
parent | cb760a4790c6d00b4ae44ad7b2c596850ac1cdb2 (diff) | |
download | ffmpeg-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.c | 3 |
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 */ } |