[MPlayer-dev-eng] [PATCH] make audio filters support EOF

Uoti Urpala uoti.urpala at pp1.inet.fi
Fri Nov 23 15:40:47 CET 2007


On Fri, 2007-11-23 at 15:23 +0800, Ulion wrote:
> 2007/11/23, Ulion <ulion2002 at gmail.com>:
> > Since currently the audio filters do not have any eof info, so it may
> > lost output the last part audio samples if it buffer samples.
> > So I made this patch to give audio filters a chance to flush the
> > buffered data if they can.

Scaletempo is the only current filter which does really significant
buffering. Do you need/intend to add such flushing functionality for
scaletempo? I don't think it's a good idea to add this code without
anything using it.

The way you detect EOF is not reliable. It can be triggered by temporary
decoding errors. Flushing filters in that case might make sense (there
will likely be a discontinuity in the audio there) but decoding can
continue afterwards and the variable shouldn't be called "eof" then.




More information about the MPlayer-dev-eng mailing list