Fix mis-computation of the needsDither variable erroneously introduced
[ffmpeg.git] / libswscale / swscale.c
index 7913708..f167629 100644 (file)
@@ -1661,7 +1661,7 @@ void ff_get_unscaled_swscale(SwsContext *c)
     int needsDither;
 
     needsDither= (isBGR(dstFormat) || isRGB(dstFormat))
-        &&  c->srcFormatBpp < 24
+        &&  c->dstFormatBpp < 24
         && (c->dstFormatBpp < c->srcFormatBpp || (!(isRGB(srcFormat) || isBGR(srcFormat))));
 
     /* yv12_to_nv12 */