diff options
-rw-r--r-- | libavcodec/pnmdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pnmdec.c b/libavcodec/pnmdec.c index f88fc2623b..1e00723e0d 100644 --- a/libavcodec/pnmdec.c +++ b/libavcodec/pnmdec.c @@ -31,7 +31,7 @@ static void samplecpy(uint8_t *dst, const uint8_t *src, int n, int maxval) } else { int i; for (i=0; i<n/2; i++) { - ((uint16_t *)dst)[i] = av_be2ne16(((uint16_t *)src)[i]); + ((uint16_t *)dst)[i] = AV_RB16(src+2*i); } } } |