mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-11 06:58:18 +00:00
avformat/nutdec: Return error on EOF from get_str()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
611e1085f8
commit
6bbb2f8f4d
@ -52,6 +52,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
|
||||
|
Loading…
Reference in New Issue
Block a user