Commit 6bbb2f8f authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/nutdec: Return error on EOF from get_str()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 611e1085
...@@ -52,6 +52,8 @@ static int get_str(AVIOContext *bc, char *string, unsigned int maxlen) ...@@ -52,6 +52,8 @@ static int get_str(AVIOContext *bc, char *string, unsigned int maxlen)
if (maxlen) if (maxlen)
string[FFMIN(len, maxlen - 1)] = 0; string[FFMIN(len, maxlen - 1)] = 0;
if (bc->eof_reached)
return AVERROR_EOF;
if (maxlen == len) if (maxlen == len)
return -1; return -1;
else else
......
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