[FFmpeg-devel] [PATCH] libavformat/subfile: return AVERROR_EOF on EOF
Michael Niedermayer
michael at niedermayer.cc
Sat Jun 17 22:53:40 EEST 2017
On Thu, Jun 15, 2017 at 10:19:53AM +0200, Nicolas George wrote:
> Le septidi 17 prairial, an CCXXV, Daniel Kucera a écrit :
> > Signed-off-by: Daniel Kucera <daniel.kucera at gmail.com>
> > ---
> > 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)
>
> LGTM, thanks.
applied
thx
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Opposition brings concord. Out of discord comes the fairest harmony.
-- Heraclitus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170617/47b17e74/attachment.sig>
More information about the ffmpeg-devel
mailing list