Commit 6ad36546 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>
(cherry picked from commit 6bbb2f8f)
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent c8676f9d
......@@ -51,6 +51,8 @@ static int get_str(AVIOContext *bc, char *string, unsigned int maxlen)
if (maxlen)
string[FFMIN(len, maxlen - 1)] = 0;
if (bc->eof_reached)
return AVERROR_EOF;
if (maxlen == len)
return -1;
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