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>
pull/263/head
Daniel Kucera 8 years ago committed by Michael Niedermayer
parent c746f92a8e
commit d4a900fad8
  1. 2
      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)

Loading…
Cancel
Save