mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-28 02:02:46 +00:00
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>
This commit is contained in:
parent
c746f92a8e
commit
d4a900fad8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user