Browse Source

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
tags/v0.5
Michael Niedermayer 17 years ago
parent
commit
0885770455
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libswscale/swscale.c

+ 1
- 1
libswscale/swscale.c View File

@@ -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) */


Loading…
Cancel
Save