On Wed, 1 Aug 2012 17:36:12 -0400, Justin Ruggles <justin.rugg...@gmail.com> wrote: > --- > libavformat/idcin.c | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/libavformat/idcin.c b/libavformat/idcin.c > index 2d506ff..bffa2f4 100644 > --- a/libavformat/idcin.c > +++ b/libavformat/idcin.c > @@ -278,6 +278,8 @@ static int idcin_read_packet(AVFormatContext *s, > } > } > > + if (s->pb->eof_reached) > + return AVERROR(EIO);
AVERROR_EOF Alternatively s->pb->error ? s->pb->error : AVERROR_EOF if you want to be fancy -- Anton Khirnov _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel