[FFmpeg-cvslog] r18531 - trunk/libavformat/asfdec.c

Ronald S. Bultje rsbultje
Thu Apr 16 13:40:21 CEST 2009


Hi,

On Thu, Apr 16, 2009 at 4:56 AM, Reimar D?ffinger
<Reimar.Doeffinger at gmx.de> wrote:
> On Thu, Apr 16, 2009 at 02:41:31AM +0200, rbultje wrote:
>> Replace AVERROR(EIO) by AVERROR_EOF on end-of-file.
>
> Ah, I was wondering about that. _Lots_ of game formats use AVERROR(EIO)
> when they want to stop demuxing.
> Should AVERROR_EOF be used preferably in general?

I think so. In general, there's currently no way to distinguish
demuxing errors from end-of-file, AVERROR_EOF allows us to distinguish
there. Well, not now, because nobody uses it, but some day when it's
generally used.

> Also if we did not actually hit EOF bit some tag in the file that says
> "stop playing here"?

I think so, it just means "the stream ended playing back here"...

Ronald



More information about the ffmpeg-cvslog mailing list