[FFmpeg-cvslog] r30826 - trunk/libswscale/swscale.c
stefano
subversion
Thu Mar 4 01:31:13 CET 2010
Author: stefano
Date: Thu Mar 4 01:31:13 2010
New Revision: 30826
Log:
Fill the r, g, b values used for computing the c->pal_yuv table in the
case where the source format is PIX_FMT_GRAY8.
This is required as PIX_FMT_GRAY8 has been declared as a paletted
format in FFmpeg r22191, fix GRAY8 -> RGB conversion.
Modified:
trunk/libswscale/swscale.c
Modified: trunk/libswscale/swscale.c
==============================================================================
--- trunk/libswscale/swscale.c Thu Mar 4 01:31:10 2010 (r30825)
+++ trunk/libswscale/swscale.c Thu Mar 4 01:31:13 2010 (r30826)
@@ -1849,6 +1849,8 @@ int sws_scale(SwsContext *c, const uint8
r= (i>>3 )*255;
g= ((i>>1)&3)*85;
b= (i&1 )*255;
+ } else if(c->srcFormat == PIX_FMT_GRAY8) {
+ r = g = b = i;
} else {
assert(c->srcFormat == PIX_FMT_BGR4_BYTE);
b= (i>>3 )*255;
More information about the ffmpeg-cvslog
mailing list