Commit d4a900fa authored by Daniel Kucera's avatar Daniel Kucera Committed by Michael Niedermayer

libavformat/subfile: return AVERROR_EOF on EOF

Signed-off-by: 's avatarDaniel Kucera <daniel.kucera@gmail.com>
Reviewed-by: 's avatarNicolas George <george@nsup.org>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent c746f92a
...@@ -102,7 +102,7 @@ static int subfile_read(URLContext *h, unsigned char *buf, int size) ...@@ -102,7 +102,7 @@ static int subfile_read(URLContext *h, unsigned char *buf, int size)
int ret; int ret;
if (rest <= 0) if (rest <= 0)
return 0; return AVERROR_EOF;
size = FFMIN(size, rest); size = FFMIN(size, rest);
ret = ffurl_read(c->h, buf, size); ret = ffurl_read(c->h, buf, size);
if (ret >= 0) if (ret >= 0)
......
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