Mercurial > libavcodec.hg
diff pnmdec.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/pnmdec.c Sat Jul 10 14:36:53 2010 +0000 +++ b/pnmdec.c Sat Jul 10 22:09:01 2010 +0000 @@ -124,7 +124,7 @@ } else if (upgrade == 2) { unsigned int j, v, f = (65535 * 32768 + s->maxval / 2) / s->maxval; for (j = 0; j < n / 2; j++) { - v = be2me_16(((uint16_t *)s->bytestream)[j]); + v = be2ne_16(((uint16_t *)s->bytestream)[j]); ((uint16_t *)ptr)[j] = (v * f + 16384) >> 15; } }