summaryrefslogtreecommitdiff
path: root/libavcodec/v210dec.c
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-07-10 22:09:01 +0000
committerMåns Rullgård <mans@mansr.com>2010-07-10 22:09:01 +0000
commite6b22522c94cfccda97018e52ab65da8c69d8a56 (patch)
tree4ecb09a4ae3f895d70ab882d841347d943eef0a2 /libavcodec/v210dec.c
parent6b7917ba3ba16cbbcc81d9e007b26f82dd06400f (diff)
bswap: change ME to NE in macro names
Other parts of FFmpeg use NE (native endian) rather than ME (machine). This makes it consistent. Originally committed as revision 24169 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/v210dec.c')
-rw-r--r--libavcodec/v210dec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/v210dec.c b/libavcodec/v210dec.c
index a1a0827bed..4cf8f73c19 100644
--- a/libavcodec/v210dec.c
+++ b/libavcodec/v210dec.c
@@ -68,7 +68,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
#define READ_PIXELS(a, b, c) \
do { \
- val = le2me_32(*src++); \
+ val = le2ne_32(*src++); \
*a++ = val << 6; \
*b++ = (val >> 4) & 0xFFC0; \
*c++ = (val >> 14) & 0xFFC0; \
@@ -86,14 +86,14 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
if (w < avctx->width - 1) {
READ_PIXELS(u, y, v);
- val = le2me_32(*src++);
+ val = le2ne_32(*src++);
*y++ = val << 6;
}
if (w < avctx->width - 3) {
*u++ = (val >> 4) & 0xFFC0;
*y++ = (val >> 14) & 0xFFC0;
- val = le2me_32(*src++);
+ val = le2ne_32(*src++);
*v++ = val << 6;
*y++ = (val >> 4) & 0xFFC0;
}