diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-05-20 17:13:15 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-05-21 20:43:39 +0200 |
commit | e7e1832cfd8b64cd950aeb91a4b471953b9f09b9 (patch) | |
tree | f348ddca05f25fac108c5e84820d53e42002cd42 | |
parent | 23e88c81d67b66bed5423295636e0df69e66862f (diff) | |
download | ffmpeg-e7e1832cfd8b64cd950aeb91a4b471953b9f09b9.tar.gz |
avformat/nutdec: Return error on EOF from get_str()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 6bbb2f8f4da67af374d62403742482cc5962aa21)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/nutdec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c index c4d56ce1ec..a0a88b3ccc 100644 --- a/libavformat/nutdec.c +++ b/libavformat/nutdec.c @@ -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 |