From c6f79c3e0b7db8b142039081ee56000f1a1e8a5c Mon Sep 17 00:00:00 2001 From: Stefan Gehrer Date: Sat, 24 Jan 2009 08:06:43 +0000 Subject: [PATCH] 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 --- libavformat/iss.c | 3 +++ 1 file changed, 3 insertions(+) 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 */ }