[MPlayer-dev-eng] New audio filter layer finished

Anders Johansson ajh at watri.uwa.edu.au
Sat Oct 5 12:41:04 CEST 2002


Hi,

> Hi,
> 
> > > > that af_inputlen() is buggy anyway, it gives me a number, but if i request
> > > > decoding of that number of bytes, i'll get few percent (hundreds bytes!)
> > > > bigger output than requested, causing data loss sometimes :(
> > > 
> > > Sht I must have been brain damaged when I wrote that code.
> > > I have tried to fix it have a look there are some comments about usage
> > > added.
> > > 
> > 
> > And now I have fixed the bugs I introduced. I am going to wear out the
> > CVS before this works :(
> 
> hmm. still bad, now nearly always underestimate the buffer size :(
> yes i know it isn't always possible toget the right size due to various
> rounding.
> 
> it works well, but after most call it produces 4 bytes less then wanted, so
> it's called again with minsize=4... 
> 
> so i have a better idea:

Done.

Observe that the function only can be used during runtime and don't
forget that if a filter is added during playback the input/output
length ratio may change. I have tested the function a bit and it
seems to work.

Can I remove af_outputlen() and af_inputlen() ?

Cheers,
//Anders




More information about the MPlayer-dev-eng mailing list