[FFmpeg-devel] [PATCH] Video decoder and demuxer for AMV files
Vladimir Voroshilov
voroshil
Wed Sep 26 20:14:48 CEST 2007
Hi, Vitor
2007/9/26, Vitor Sessak <vitor1001 at gmail.com>:
> Hi
>
> Vladimir Voroshilov wrote:
> > Hi, Vitor
> >
> > 2007/9/25, Vitor Sessak <vitor1001 at gmail.com>:
> >> Actually, I wanted to make explicit the similarity to the smjpeg audio
> >> decoder. But I found a way of doing it without duplicating code. New
> >> patch attached.
> >
> > Page[1] says (and all my samples confirm this), that AMV audio samples
> > has additional 8 bytes (instead of 4) at the top:
> > 1-2 predictor
> > 3-4 index
> > 5-8 sample size
> >
> > Thus your patch should be modified to skip additional 4 bytes before
> > converting nibbles.
>
> You're absolutely right (it fixed pops). New patch attached.
Attached (untested) patch has also encoding capability.
Please test it (i don't know how).
--
Regards,
Vladimir Voroshilov mailto:voroshil at gmail.com
JID: voroshil at gmail.com, voroshil at jabber.ru
ICQ: 95587719
-------------- next part --------------
A non-text attachment was scrubbed...
Name: amv_audio4_w_coder.diff
Type: text/x-diff
Size: 4354 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070927/7c3b880a/attachment.diff>
More information about the ffmpeg-devel
mailing list