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 fa971e1..497cf85 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)