[SCM] libav/experimental: rgb24toyv12 isnt accuratly rounding, so disable it as well when the user asks for accurate rounding.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:30:00 UTC 2013


The following commit has been merged in the experimental branch:
commit 0885770455c32180001b2ce05d181abe8deaf06d
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Fri Sep 12 04:40:51 2008 +0000

    rgb24toyv12 isnt accuratly rounding, so disable it as well when the
    user asks for accurate rounding.
    
    Originally committed as revision 27585 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 9dcb6f9..ff4738a 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -2173,7 +2173,7 @@ SwsContext *sws_getContext(int srcW, int srcH, int srcFormat, int dstW, int dstH
         }
 
         /* bgr24toYV12 */
-        if (srcFormat==PIX_FMT_BGR24 && dstFormat==PIX_FMT_YUV420P)
+        if (srcFormat==PIX_FMT_BGR24 && dstFormat==PIX_FMT_YUV420P && !(flags & SWS_ACCURATE_RND))
             c->swScale= bgr24toyv12Wrapper;
 
         /* rgb/bgr -> rgb/bgr (no dither needed forms) */

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list