[FFmpeg-devel] [PATCH] Video decoder and demuxer for AMV files

Vladimir Voroshilov voroshil
Tue Sep 25 18:27:31 CEST 2007

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.
Perhaps skipping extra bytes from the end (if any, according to sample
size) will be good too (imho).

[1] http://code.google.com/p/amv-codec-tools/wiki/AmvDocumentation

Vladimir Voroshilov     mailto:voroshil at gmail.com
JID: voroshil at gmail.com, voroshil at jabber.ru
ICQ: 95587719

More information about the ffmpeg-devel mailing list