summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/native/nuppelvideo.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-03-03 10:19:56 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-03-03 10:19:56 +0000
commitfd9fe9e04d56535ccbee56a7f0c5876009e56c9f (patch)
tree925f95455381bb4098ee0c0a6ad4ab2b2716dd62 /libmpcodecs/native/nuppelvideo.c
parent3d4f1ec4833a4fcb9ce3894f033984174f788b8f (diff)
downloadmpv-fd9fe9e04d56535ccbee56a7f0c5876009e56c9f.tar.bz2
mpv-fd9fe9e04d56535ccbee56a7f0c5876009e56c9f.tar.xz
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
Diffstat (limited to 'libmpcodecs/native/nuppelvideo.c')
-rw-r--r--libmpcodecs/native/nuppelvideo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmpcodecs/native/nuppelvideo.c b/libmpcodecs/native/nuppelvideo.c
index 8b82d8a4e3..566d707426 100644
--- a/libmpcodecs/native/nuppelvideo.c
+++ b/libmpcodecs/native/nuppelvideo.c
@@ -13,6 +13,7 @@
#include "config.h"
#include "mp_msg.h"
+#include "bswap.h"
#include "../../libvo/fastmemcpy.h"
@@ -37,6 +38,7 @@ void decode_nuv( unsigned char *encoded, int encoded_size,
// printf("frametype: %c, comtype: %c, encoded_size: %d, width: %d, height: %d\n",
// encodedh->frametype, encodedh->comptype, encoded_size, width, height);
+ le2me_rtframeheader(encodedh);
switch(encodedh->frametype)
{
case 'D': /* additional data for compressors */