Mercurial > libavcodec.hg
diff mjpegdec.c @ 12128:ee740a4e80c5 libavcodec
bswap: change ME to NE in macro names
Other parts of FFmpeg use NE (native endian) rather than ME (machine).
This makes it consistent.
author | mru |
---|---|
date | Sat, 10 Jul 2010 22:09:01 +0000 |
parents | c35d7bc64882 |
children | 8b28e74de2c0 |
line wrap: on
line diff
--- a/mjpegdec.c Sat Jul 10 14:36:53 2010 +0000 +++ b/mjpegdec.c Sat Jul 10 22:09:01 2010 +0000 @@ -1027,7 +1027,7 @@ return -1; id = (get_bits(&s->gb, 16) << 16) | get_bits(&s->gb, 16); - id = be2me_32(id); + id = be2ne_32(id); len -= 6; if(s->avctx->debug & FF_DEBUG_STARTCODE){ @@ -1134,7 +1134,7 @@ if ((s->start_code == APP1) && (len > (0x28 - 8))) { id = (get_bits(&s->gb, 16) << 16) | get_bits(&s->gb, 16); - id = be2me_32(id); + id = be2ne_32(id); len -= 4; if (id == AV_RL32("mjpg")) /* Apple MJPEG-A */ {