[MPlayer-dev-eng] New audio filter layer finished
Anders Johansson
ajh at watri.uwa.edu.au
Thu Oct 3 14:20:37 CEST 2002
Hi,
> Hi,
>
> > Hi,
> >
> > > > > now, the problems.
> > > > > i've tried to play the matrix 1 trailer .vob (2.0ch 48khz ac3) wiht -srate
> > > > > 44100 and i got strange noise, clicks sometimes.
> >
> > ok i've found this one as well... you won't believe.. or yes?
> > yes. it's the good old sample size problem...
> > i wonder why is this basic design issue still there in new libaf ?
> > ok i've added the workaround to my code, for now it works fine:
> >
> > // round to whole samples:
> > declen/=sh_audio->samplesize*sh_audio->channels;
> > declen*=sh_audio->samplesize*sh_audio->channels;
> >
> > actually this should be done at least in af_inputlen(), or better in deeper
> > part, maybe inside the plugins?
> >
> > 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 :(
//Anders
More information about the MPlayer-dev-eng
mailing list