mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-20 14:20:51 +00:00
test if color conv fonction exists prior to using it
Originally committed as revision 23206 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
This commit is contained in:
parent
074a9d2b58
commit
068b0f4f29
@ -1611,6 +1611,8 @@ static int rgb2rgbWrapper(SwsContext *c, uint8_t* src[], int srcStride[], int sr
|
||||
sws_format_name(srcFormat), sws_format_name(dstFormat));
|
||||
}
|
||||
|
||||
if(conv)
|
||||
{
|
||||
if (dstStride[0]*srcBpp == srcStride[0]*dstBpp)
|
||||
conv(src[0], dst[0] + dstStride[0]*srcSliceY, srcSliceH*srcStride[0]);
|
||||
else
|
||||
@ -1626,6 +1628,7 @@ static int rgb2rgbWrapper(SwsContext *c, uint8_t* src[], int srcStride[], int sr
|
||||
dstPtr+= dstStride[0];
|
||||
}
|
||||
}
|
||||
}
|
||||
return srcSliceH;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user