summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Kucera <[email protected]>2017-06-05 20:32:39 +0200
committerMichael Niedermayer <[email protected]>2017-06-17 22:36:54 +0200
commitd4a900fad8b1fe23d304f508802147b200722251 (patch)
treeaa7b65701add6cc496d71ee6d4bb49ec8f945a38
parentc746f92a8e03d5a062359fba836eba4b3530687e (diff)
libavformat/subfile: return AVERROR_EOF on EOF
Signed-off-by: Daniel Kucera <[email protected]> Reviewed-by: Nicolas George <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
-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)