diff --git a/libswscale/swscale.c b/libswscale/swscale.c index 6e47a92ac7786d60c8b59ac159bccff9449d5417..91bfe180a977ad5e93d1b95858c9842229f06ce5 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -522,7 +522,7 @@ static int swscale(SwsContext *c, const uint8_t *src[], break; // we can't output a dstY line so let's try with the next slice #if HAVE_MMX_INLINE - updateMMXDitherTables(c, dstY, lumBufIndex, chrBufIndex, + ff_updateMMXDitherTables(c, dstY, lumBufIndex, chrBufIndex, lastInLumBuf, lastInChrBuf); #endif if (should_dither) { diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h index 37c2b37548a6ffd90ebad8eb6f6e08f9c2e13fd1..55f683f5be89c9ec4792507e2207ea8cf43dd302 100644 --- a/libswscale/swscale_internal.h +++ b/libswscale/swscale_internal.h @@ -613,7 +613,7 @@ int ff_yuv2rgb_c_init_tables(SwsContext *c, const int inv_table[4], void ff_yuv2rgb_init_tables_ppc(SwsContext *c, const int inv_table[4], int brightness, int contrast, int saturation); -void updateMMXDitherTables(SwsContext *c, int dstY, int lumBufIndex, int chrBufIndex, +void ff_updateMMXDitherTables(SwsContext *c, int dstY, int lumBufIndex, int chrBufIndex, int lastInLumBuf, int lastInChrBuf); av_cold void ff_sws_init_range_convert(SwsContext *c); diff --git a/libswscale/x86/swscale.c b/libswscale/x86/swscale.c index fe5c4eaec75f1b138c14900deb177c263f471f8e..a06d1f2102f48d2ece822dc717c4bed327aadd89 100644 --- a/libswscale/x86/swscale.c +++ b/libswscale/x86/swscale.c @@ -80,7 +80,7 @@ DECLARE_ALIGNED(8, const uint64_t, ff_w1111) = 0x0001000100010001ULL; #include "swscale_template.c" #endif -void updateMMXDitherTables(SwsContext *c, int dstY, int lumBufIndex, int chrBufIndex, +void ff_updateMMXDitherTables(SwsContext *c, int dstY, int lumBufIndex, int chrBufIndex, int lastInLumBuf, int lastInChrBuf) { const int dstH= c->dstH;