[MPlayer-dev-eng] [PATCH] libmpcodecs/vf_scale: Fix a build problem on big endian

Alexander Strasser eclipse7 at gmx.net
Fri Dec 20 16:17:17 EET 2024


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

--


More information about the MPlayer-dev-eng mailing list