[FFmpeg-devel] [PATCH] libswscale: fix build after ffmpeg revision r24171
Rafaël Carré
rafael.carre
Sun Jul 11 20:34:45 CEST 2010
s/bswap_16/av_bswap16/g
---
rgb2rgb.c | 2 +-
swscale.c | 2 +-
yuv2rgb.c | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/rgb2rgb.c b/rgb2rgb.c
index 983944d..f92e165 100644
--- a/rgb2rgb.c
+++ b/rgb2rgb.c
@@ -231,7 +231,7 @@ void palette8tobgr16(const uint8_t *src, uint8_t *dst, long num_pixels, const ui
{
long i;
for (i=0; i<num_pixels; i++)
- ((uint16_t *)dst)[i] = bswap_16(((const uint16_t *)palette)[src[i]]);
+ ((uint16_t *)dst)[i] = av_bswap16(((const uint16_t *)palette)[src[i]]);
}
#endif
diff --git a/swscale.c b/swscale.c
index a64c09b..5c392ae 100644
--- a/swscale.c
+++ b/swscale.c
@@ -1659,7 +1659,7 @@ static int planarCopyWrapper(SwsContext *c, const uint8_t* src[], int srcStride[
for (i=0; i<height; i++) {
for (j=0; j<length; j++)
- ((uint16_t*)dstPtr)[j] = bswap_16(((const uint16_t*)srcPtr)[j]);
+ ((uint16_t*)dstPtr)[j] = av_bswap16(((const uint16_t*)srcPtr)[j]);
srcPtr+= srcStride[plane];
dstPtr+= dstStride[plane];
}
diff --git a/yuv2rgb.c b/yuv2rgb.c
index 70841a8..bd3fb93 100644
--- a/yuv2rgb.c
+++ b/yuv2rgb.c
@@ -774,7 +774,7 @@ av_cold int ff_yuv2rgb_c_init_tables(SwsContext *c, const int inv_table[4], int
}
if (isNotNe)
for (i = 0; i < 1024*3; i++)
- y_table16[i] = bswap_16(y_table16[i]);
+ y_table16[i] = av_bswap16(y_table16[i]);
fill_table(c->table_rV, 2, crv, y_table16 + yoffs);
fill_table(c->table_gU, 2, cgu, y_table16 + yoffs + 1024);
fill_table(c->table_bU, 2, cbu, y_table16 + yoffs + 2048);
@@ -797,7 +797,7 @@ av_cold int ff_yuv2rgb_c_init_tables(SwsContext *c, const int inv_table[4], int
}
if(isNotNe)
for (i = 0; i < 1024*3; i++)
- y_table16[i] = bswap_16(y_table16[i]);
+ y_table16[i] = av_bswap16(y_table16[i]);
fill_table(c->table_rV, 2, crv, y_table16 + yoffs);
fill_table(c->table_gU, 2, cgu, y_table16 + yoffs + 1024);
fill_table(c->table_bU, 2, cbu, y_table16 + yoffs + 2048);
--
1.7.0.4
More information about the ffmpeg-devel
mailing list