summaryrefslogtreecommitdiff
path: root/libavformat/subfile.c
diff options
context:
space:
mode:
authorDaniel Kucera <daniel.kucera@gmail.com>2017-06-05 20:32:39 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2017-06-17 22:36:54 +0200
commitd4a900fad8b1fe23d304f508802147b200722251 (patch)
treeaa7b65701add6cc496d71ee6d4bb49ec8f945a38 /libavformat/subfile.c
parentc746f92a8e03d5a062359fba836eba4b3530687e (diff)
libavformat/subfile: return AVERROR_EOF on EOF
Signed-off-by: Daniel Kucera <daniel.kucera@gmail.com> Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/subfile.c')
-rw-r--r--libavformat/subfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/subfile.c b/libavformat/subfile.c
index fa971e1902..497cf85211 100644
--- a/libavformat/subfile.c
+++ b/libavformat/subfile.c
@@ -102,7 +102,7 @@ static int subfile_read(URLContext *h, unsigned char *buf, int size)
int ret;
if (rest <= 0)
- return 0;
+ return AVERROR_EOF;
size = FFMIN(size, rest);
ret = ffurl_read(c->h, buf, size);
if (ret >= 0)