Commit 6434e372 authored by stefang's avatar stefang

fix header parsing, the NULL terminated File ID is followed by a space


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16738 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 2874eb25
...@@ -51,6 +51,9 @@ static void get_token(ByteIOContext *s, char *buf, int maxlen) ...@@ -51,6 +51,9 @@ static void get_token(ByteIOContext *s, char *buf, int maxlen)
buf[i++] = c; buf[i++] = c;
} }
if(!c)
get_byte(s);
buf[i] = 0; /* Ensure null terminated, but may be truncated */ buf[i] = 0; /* Ensure null terminated, but may be truncated */
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment