[FFmpeg-devel] [PATCH] v210 decoder

Michael Niedermayer michaelni
Tue Feb 17 20:56:25 CET 2009


On Tue, Feb 17, 2009 at 08:39:27PM +0100, Reimar D?ffinger wrote:
> On Tue, Feb 17, 2009 at 11:21:31AM -0800, Baptiste Coudurier wrote:
> > On 2/17/2009 9:26 AM, Reimar D?ffinger wrote:
> > > this is a decoder for
> > > http://samples.mplayerhq.hu/V-codecs/v210/v210_720p.avi
> > > it is not actually a proper codec, it is just little-endian
> > > UYVY with 10 bits per component and aligned to 32 bit every 3
> > > components.
> > 
> > Interesting, 'v210' is a registered Quicktime fourcc.
> > http://developer.apple.com/quicktime/icefloe/dispatch019.html
> > 
> > I suspect someone stream copied into avi.
> 
> Hm, Google seems not so good at finding stuff in the QuickTime
> documentation.
> I added this link to the multimedia wiki and fixed the line length
> rounding.
> Also attaching a fixed patch (also including the MPlayer etc/codecs.conf
> part), just in case someone in the future stumbles over this.
> Hope you don't mind that I use this list as backup storage/publishing
> method :-)

> Index: libavformat/riff.c
> ===================================================================
> --- libavformat/riff.c	(revision 17395)
> +++ libavformat/riff.c	(working copy)
> @@ -200,6 +200,7 @@
>      { CODEC_ID_RPZA,         MKTAG('R', 'P', 'Z', 'A') },
>      { CODEC_ID_RPZA,         MKTAG('r', 'p', 'z', 'a') },
>      { CODEC_ID_SP5X,         MKTAG('S', 'P', '5', '4') },
> +    { CODEC_ID_V210,         MKTAG('v', '2', '1', '0') },
>      { CODEC_ID_NONE,         0 }
>  };
>  
[...]
> Index: libavcodec/avcodec.h
> ===================================================================
> --- libavcodec/avcodec.h	(revision 17395)
> +++ libavcodec/avcodec.h	(working copy)
> @@ -191,6 +191,7 @@
>      CODEC_ID_TGV,
>      CODEC_ID_TGQ,
>      CODEC_ID_TQI,
> +    CODEC_ID_V210,
>  
>      /* various PCM "codecs" */
>      CODEC_ID_PCM_S16LE= 0x10000,

you can commit these 2 if you like


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The educated differ from the uneducated as much as the living from the
dead. -- Aristotle 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090217/9fe3c183/attachment.pgp>



More information about the ffmpeg-devel mailing list