changeset 9712:1cc354a5242c libavcodec

Support YVU9 AVI 4cc. Fixes issue1068.
author michael
date Tue, 26 May 2009 03:51:00 +0000
parents d563821462b4
children d762f9979193
files raw.c rawdec.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/raw.c	Mon May 25 22:19:35 2009 +0000
+++ b/raw.c	Tue May 26 03:51:00 2009 +0000
@@ -32,6 +32,7 @@
     { 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') },
--- a/rawdec.c	Mon May 25 22:19:35 2009 +0000
+++ b/rawdec.c	Tue May 26 03:51:00 2009 +0000
@@ -139,7 +139,8 @@
     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];