[Ffmpeg-devel] [RFC] Musepack seeking patch
Kostya
kostya.shishkov
Thu Dec 28 06:48:50 CET 2006
On Wed, Dec 27, 2006 at 09:59:44PM +0100, Michael Niedermayer wrote:
> Hi
>
> On Wed, Dec 27, 2006 at 06:28:55AM +0200, Kostya wrote:
> > Here is a patch which enables full Musepack seeking.
>
> looks ok
applied
> >
> > As a side note: seeking may cause sound distortions because
> > Musepack stores scaling coefficients as difference to the
> > previous ones. libmppdec workarounds this by decoding
> > 32 previous frames but that's a nasty hack and could not
> > be done here.
>
> what about something like:
>
> AVCodec.flush(){
> skip_frames=32;
> }
>
> decode_frame(){
> while(skip_frames-- > 0){
> ... actual decode ...
> }
> }
very nice but it is not possible to seek to position < ~1s (32*1152 samples)
if nothing better will come to head i'll use this variant
> [...]
> --
> Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
>
> When you are offended at any man's fault, turn to yourself and study your
> own failings. Then you will forget your anger. -- Epictetus
More information about the ffmpeg-devel
mailing list