]> git.sesse.net Git - ffmpeg/blobdiff - libswscale/yuv2rgb.c
h264: do not call field_end if we do not have a current picture
[ffmpeg] / libswscale / yuv2rgb.c
index 84e3e9c50e0b48528a8429531af9c99818b70c09..f939bbebd0ecdf5a430d0f6c94011c81af9c077c 100644 (file)
@@ -560,14 +560,14 @@ SwsFunc ff_yuv2rgb_get_func_ptr(SwsContext *c)
 {
     SwsFunc t = NULL;
 
+    if (ARCH_BFIN)
+        t = ff_yuv2rgb_init_bfin(c);
+    if (ARCH_PPC)
+        t = ff_yuv2rgb_init_ppc(c);
+    if (HAVE_VIS)
+        t = ff_yuv2rgb_init_vis(c);
     if (ARCH_X86)
         t = ff_yuv2rgb_init_x86(c);
-    else if (HAVE_VIS)
-        t = ff_yuv2rgb_init_vis(c);
-    else if (ARCH_BFIN)
-        t = ff_yuv2rgb_get_func_ptr_bfin(c);
-    else if (ARCH_PPC)
-        t = ff_yuv2rgb_init_ppc(c);
 
     if (t)
         return t;