From 71b0654cc6693a8c925966cfb88ec62c1052609f Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 26 May 2009 03:51:00 +0000 Subject: Support YVU9 AVI 4cc. Fixes issue1068. Originally committed as revision 18952 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/rawdec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavcodec/rawdec.c') diff --git a/libavcodec/rawdec.c b/libavcodec/rawdec.c index ebd9ded..89e9ea9 100644 --- a/libavcodec/rawdec.c +++ b/libavcodec/rawdec.c @@ -139,7 +139,8 @@ static int raw_decode(AVCodecContext *avctx, 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]; -- cgit v1.1