From fd9fe9e04d56535ccbee56a7f0c5876009e56c9f Mon Sep 17 00:00:00 2001 From: reimar Date: Thu, 3 Mar 2005 10:19:56 +0000 Subject: Make nuv files work on bigendian (but old nuv files created with mencoder wont play anymore - before they would have worked with mplayer on be) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14897 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/native/RTjpegN.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'libmpcodecs/native/RTjpegN.c') diff --git a/libmpcodecs/native/RTjpegN.c b/libmpcodecs/native/RTjpegN.c index 54fc3d0026..523612d1f9 100644 --- a/libmpcodecs/native/RTjpegN.c +++ b/libmpcodecs/native/RTjpegN.c @@ -31,6 +31,7 @@ #define MMX #endif +#include "bswap.h" #include "RTjpegN.h" #ifdef MMX @@ -2820,9 +2821,9 @@ void RTjpeg_init_compress(__u32 *buf, int width, int height, __u8 Q) RTjpeg_quant_init(); for(i=0; i<64; i++) - buf[i]=RTjpeg_liqt[i]; + buf[i]=le2me_32(RTjpeg_liqt[i]); for(i=0; i<64; i++) - buf[64+i]=RTjpeg_ciqt[i]; + buf[64+i]=le2me_32(RTjpeg_ciqt[i]); } void RTjpeg_init_decompress(__u32 *buf, int width, int height) @@ -2840,8 +2841,8 @@ void RTjpeg_init_decompress(__u32 *buf, int width, int height) for(i=0; i<64; i++) { - RTjpeg_liqt[i]=buf[i]; - RTjpeg_ciqt[i]=buf[i+64]; + RTjpeg_liqt[i]=le2me_32(buf[i]); + RTjpeg_ciqt[i]=le2me_32(buf[i+64]); } RTjpeg_lb8=0; -- cgit v1.2.3