diff --git a/libswscale/swscale.c b/libswscale/swscale.c index 6e47a92ac7..91bfe180a9 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 37c2b37548..55f683f5be 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 fe5c4eaec7..a06d1f2102 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;