[PATCH] libmpcodecs/vf_scale: Fix a build problem on big endian
Fixes another problem reported in ticket 2424 (comment 12) --- This was confirmed to help here: https://trac.mplayerhq.hu/ticket/2424#comment:14 If there are no objections soon, I intent to commit this tomorrow evening. Feel free to comment and discuss also afterwards. Best regards, Alexander libmpcodecs/vf_scale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmpcodecs/vf_scale.c b/libmpcodecs/vf_scale.c index 39deb59c2..fd4511283 100644 --- a/libmpcodecs/vf_scale.c +++ b/libmpcodecs/vf_scale.c @@ -429,7 +429,7 @@ static void scale(struct SwsContext *sws1, struct SwsContext *sws2, uint8_t *src int i; for(i=0; i<256; i++) pal2[i]= bswap_32(((uint32_t*)src[1])[i]); - src2[1]= pal2; + src2[1]= (uint8_t *)pal2; } #endif --
On 2024-12-20 15:17 +0100, Alexander Strasser wrote:
Fixes another problem reported in ticket 2424 (comment 12) ---
This was confirmed to help here: https://trac.mplayerhq.hu/ticket/2424#comment:14
If there are no objections soon, I intent to commit this tomorrow evening.
Feel free to comment and discuss also afterwards.
Best regards, Alexander
libmpcodecs/vf_scale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libmpcodecs/vf_scale.c b/libmpcodecs/vf_scale.c index 39deb59c2..fd4511283 100644 --- a/libmpcodecs/vf_scale.c +++ b/libmpcodecs/vf_scale.c @@ -429,7 +429,7 @@ static void scale(struct SwsContext *sws1, struct SwsContext *sws2, uint8_t *src int i; for(i=0; i<256; i++) pal2[i]= bswap_32(((uint32_t*)src[1])[i]); - src2[1]= pal2; + src2[1]= (uint8_t *)pal2; } #endif
Committed as SVN r38668 Alexander
participants (1)
-
Alexander Strasser