summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/vd_mtga.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-07-10 22:24:31 +0000
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-02 04:14:43 +0200
commitd12c624ea8c58be40181cfbd7816f50e9e6c00ce (patch)
tree2c5706c559e3897f40e7912d72562440c5328a86 /libmpcodecs/vd_mtga.c
parent1663d97a112261c10f989b70547545048f9e31c3 (diff)
downloadmpv-d12c624ea8c58be40181cfbd7816f50e9e6c00ce.tar.bz2
mpv-d12c624ea8c58be40181cfbd7816f50e9e6c00ce.tar.xz
Use AV_RL* macros instead of typecasts where appropriate
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31680 b3059339-0415-0410-9bf9-f77b7e298cf2 100l compialtion fix and use AV_RB32. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31683 b3059339-0415-0410-9bf9-f77b7e298cf2 Current FFmpeg installs intreadwrite.h, but keep using the internal version for now to keep the possibility of compiling against older FFmpeg lib versions.
Diffstat (limited to 'libmpcodecs/vd_mtga.c')
-rw-r--r--libmpcodecs/vd_mtga.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libmpcodecs/vd_mtga.c b/libmpcodecs/vd_mtga.c
index 310d6e2702..390166a3e6 100644
--- a/libmpcodecs/vd_mtga.c
+++ b/libmpcodecs/vd_mtga.c
@@ -29,7 +29,7 @@
#include "config.h"
#include "mp_msg.h"
-#include "mpbswap.h"
+#include "ffmpeg_files/intreadwrite.h"
#include "libvo/fastmemcpy.h"
#include "vd_internal.h"
@@ -176,8 +176,8 @@ static short read_tga_header(unsigned char *buf, TGAInfo *info)
info->img_type = buf[2];
/* targa data is always stored in little endian byte order */
- info->width = le2me_16(*(unsigned short *) &buf[12]);
- info->height = le2me_16(*(unsigned short *) &buf[14]);
+ info->width = AV_RL16(&buf[12]);
+ info->height = AV_RL16(&buf[14]);
info->bpp = buf[16];