[FFmpeg-cvslog] r18952 - in trunk: libavcodec/raw.c libavcodec/rawdec.c libavformat/riff.c
michael
subversion
Tue May 26 05:51:01 CEST 2009
Author: michael
Date: Tue May 26 05:51:00 2009
New Revision: 18952
Log:
Support YVU9 AVI 4cc.
Fixes issue1068.
Modified:
trunk/libavcodec/raw.c
trunk/libavcodec/rawdec.c
trunk/libavformat/riff.c
Modified: trunk/libavcodec/raw.c
==============================================================================
--- trunk/libavcodec/raw.c Tue May 26 03:14:10 2009 (r18951)
+++ trunk/libavcodec/raw.c Tue May 26 05:51:00 2009 (r18952)
@@ -32,6 +32,7 @@ const PixelFormatTag ff_raw_pixelFormatT
{ PIX_FMT_YUV420P, MKTAG('I', 'Y', 'U', 'V') },
{ PIX_FMT_YUV420P, MKTAG('Y', 'V', '1', '2') },
{ PIX_FMT_YUV410P, MKTAG('Y', 'U', 'V', '9') },
+ { PIX_FMT_YUV410P, MKTAG('Y', 'V', 'U', '9') },
{ PIX_FMT_YUV411P, MKTAG('Y', '4', '1', 'B') },
{ PIX_FMT_YUV422P, MKTAG('Y', '4', '2', 'B') },
{ PIX_FMT_GRAY8, MKTAG('Y', '8', '0', '0') },
Modified: trunk/libavcodec/rawdec.c
==============================================================================
--- trunk/libavcodec/rawdec.c Tue May 26 03:14:10 2009 (r18951)
+++ trunk/libavcodec/rawdec.c Tue May 26 05:51:00 2009 (r18952)
@@ -139,7 +139,8 @@ static int raw_decode(AVCodecContext *av
if(context->flip)
flip(avctx, picture);
- if (avctx->codec_tag == MKTAG('Y', 'V', '1', '2'))
+ if ( avctx->codec_tag == MKTAG('Y', 'V', '1', '2')
+ || avctx->codec_tag == MKTAG('Y', 'V', 'U', '9'))
{
// swap fields
unsigned char *tmp = picture->data[1];
Modified: trunk/libavformat/riff.c
==============================================================================
--- trunk/libavformat/riff.c Tue May 26 03:14:10 2009 (r18951)
+++ trunk/libavformat/riff.c Tue May 26 05:51:00 2009 (r18952)
@@ -141,6 +141,7 @@ const AVCodecTag codec_bmp_tags[] = {
{ CODEC_ID_RAWVIDEO, MKTAG('I', 'Y', 'U', 'V') },
{ CODEC_ID_RAWVIDEO, MKTAG('Y', '8', '0', '0') },
{ CODEC_ID_RAWVIDEO, MKTAG('H', 'D', 'Y', 'C') },
+ { CODEC_ID_RAWVIDEO, MKTAG('Y', 'V', 'U', '9') },
{ CODEC_ID_V210, MKTAG('v', '2', '1', '0') },
{ CODEC_ID_INDEO3, MKTAG('I', 'V', '3', '1') },
{ CODEC_ID_INDEO3, MKTAG('I', 'V', '3', '2') },
More information about the ffmpeg-cvslog
mailing list