]> git.sesse.net Git - ffmpeg/commitdiff
libavformat/subfile: return AVERROR_EOF on EOF
authorDaniel Kucera <daniel.kucera@gmail.com>
Mon, 5 Jun 2017 18:32:39 +0000 (20:32 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 17 Jun 2017 20:36:54 +0000 (22:36 +0200)
Signed-off-by: Daniel Kucera <daniel.kucera@gmail.com>
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/subfile.c

index fa971e190210a2a55de82b7ff5390a7c00d5da0d..497cf852116fd8dbdc9781377053752a65623ebb 100644 (file)
@@ -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)