changeset 12503:3fff0806404a libavcodec

Support deinterlacing of YUVJ420P.
author banan
date Mon, 20 Sep 2010 11:34:27 +0000
parents 6bc14239edfb
children 036603a63c51
files imgconvert.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/imgconvert.c	Sat Sep 18 20:44:32 2010 +0000
+++ b/imgconvert.c	Mon Sep 20 11:34:27 2010 +0000
@@ -1175,6 +1175,7 @@
     int i;
 
     if (pix_fmt != PIX_FMT_YUV420P &&
+        pix_fmt != PIX_FMT_YUVJ420P &&
         pix_fmt != PIX_FMT_YUV422P &&
         pix_fmt != PIX_FMT_YUV444P &&
         pix_fmt != PIX_FMT_YUV411P &&
@@ -1186,6 +1187,7 @@
     for(i=0;i<3;i++) {
         if (i == 1) {
             switch(pix_fmt) {
+            case PIX_FMT_YUVJ420P:
             case PIX_FMT_YUV420P:
                 width >>= 1;
                 height >>= 1;