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 */ }