[FFmpeg-cvslog] libavformat/subfile: return AVERROR_EOF on EOF

Daniel Kucera git at videolan.org
Sat Jun 17 23:38:17 EEST 2017


ffmpeg | branch: master | Daniel Kucera <daniel.kucera at gmail.com> | Mon Jun  5 20:32:39 2017 +0200| [d4a900fad8b1fe23d304f508802147b200722251] | committer: Michael Niedermayer

libavformat/subfile: return AVERROR_EOF on EOF

Signed-off-by: Daniel Kucera <daniel.kucera at gmail.com>
Reviewed-by: Nicolas George <george at nsup.org>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d4a900fad8b1fe23d304f508802147b200722251
---

 libavformat/subfile.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)



More information about the ffmpeg-cvslog mailing list