[FFmpeg-cvslog] r10712 - trunk/libavcodec/imgconvert.c

cehoyos subversion
Fri Oct 12 00:31:09 CEST 2007


Author: cehoyos
Date: Fri Oct 12 00:31:08 2007
New Revision: 10712

Log:
Enable avpicture_deinterlace() for PIX_FMT_GRAY8.
Patch by Andrea Gualano, gualano T imavis O com


Modified:
   trunk/libavcodec/imgconvert.c

Modified: trunk/libavcodec/imgconvert.c
==============================================================================
--- trunk/libavcodec/imgconvert.c	(original)
+++ trunk/libavcodec/imgconvert.c	Fri Oct 12 00:31:08 2007
@@ -2824,7 +2824,8 @@ int avpicture_deinterlace(AVPicture *dst
     if (pix_fmt != PIX_FMT_YUV420P &&
         pix_fmt != PIX_FMT_YUV422P &&
         pix_fmt != PIX_FMT_YUV444P &&
-        pix_fmt != PIX_FMT_YUV411P)
+        pix_fmt != PIX_FMT_YUV411P &&
+        pix_fmt != PIX_FMT_GRAY8)
         return -1;
     if ((width & 3) != 0 || (height & 3) != 0)
         return -1;
@@ -2845,6 +2846,9 @@ int avpicture_deinterlace(AVPicture *dst
             default:
                 break;
             }
+            if (pix_fmt == PIX_FMT_GRAY8) {
+                break;
+            }
         }
         if (src == dst) {
             deinterlace_bottom_field_inplace(dst->data[i], dst->linesize[i],




More information about the ffmpeg-cvslog mailing list