[FFmpeg-cvslog] x86/yuv2rgb_mmx: Remove yuv420 check.

Michael Niedermayer git at videolan.org
Sat Jan 14 23:01:28 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Jan 14 21:42:56 2012 +0100| [5a840f636491fa52a003fb8f674f6db39d5edd66] | committer: Michael Niedermayer

x86/yuv2rgb_mmx: Remove yuv420 check.

This check is not correct, the code supports more yuv variants.
Fixes Ticket904

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5a840f636491fa52a003fb8f674f6db39d5edd66
---

 libswscale/x86/yuv2rgb_mmx.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/libswscale/x86/yuv2rgb_mmx.c b/libswscale/x86/yuv2rgb_mmx.c
index df0e1a3..fd184eb 100644
--- a/libswscale/x86/yuv2rgb_mmx.c
+++ b/libswscale/x86/yuv2rgb_mmx.c
@@ -68,10 +68,6 @@ SwsFunc ff_yuv2rgb_init_mmx(SwsContext *c)
 {
     int cpu_flags = av_get_cpu_flags();
 
-    if (c->srcFormat != PIX_FMT_YUV420P &&
-        c->srcFormat != PIX_FMT_YUVA420P)
-        return NULL;
-
 #if HAVE_MMX2
     if (cpu_flags & AV_CPU_FLAG_MMX2) {
         switch (c->dstFormat) {



More information about the ffmpeg-cvslog mailing list