From 5a840f636491fa52a003fb8f674f6db39d5edd66 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 14 Jan 2012 21:42:56 +0100 Subject: [PATCH] x86/yuv2rgb_mmx: Remove yuv420 check. This check is not correct, the code supports more yuv variants. Fixes Ticket904 Signed-off-by: Michael Niedermayer --- libswscale/x86/yuv2rgb_mmx.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libswscale/x86/yuv2rgb_mmx.c b/libswscale/x86/yuv2rgb_mmx.c index df0e1a3726..fd184eb71d 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) {