aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/exr.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-03-01 13:10:22 +0000
committerPaul B Mahol <onemda@gmail.com>2013-03-01 13:16:29 +0000
commit5a232e5078cc57d10452968413a00be8d642f4aa (patch)
tree372d7a53749b9d06fd1a924126bd05d3d8be3530 /libavcodec/exr.c
parent4b335e73daca53554b190035b7e6247662992a06 (diff)
downloadffmpeg-5a232e5078cc57d10452968413a00be8d642f4aa.tar.gz
exr: use bytestream functions in pxr24_uncompress()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/exr.c')
-rw-r--r--libavcodec/exr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/exr.c b/libavcodec/exr.c
index 8c1cca4073..143281751d 100644
--- a/libavcodec/exr.c
+++ b/libavcodec/exr.c
@@ -309,18 +309,18 @@ static int pxr24_uncompress(EXRContext *s, const uint8_t *src,
(*(ptr[1]++) << 16) |
(*(ptr[2]++) << 8);
pixel += diff;
- AV_WL32(out, pixel);
+ bytestream_put_le32(&out, pixel);
}
break;
case EXR_HALF:
ptr[0] = in;
ptr[1] = ptr[0] + s->xdelta;
in = ptr[1] + s->xdelta;
- for (j = 0; j < s->xdelta; j++, out += 2) {
+ for (j = 0; j < s->xdelta; j++) {
uint32_t diff = (*(ptr[0]++) << 8) | *(ptr[1]++);
pixel += diff;
- AV_WL16(out, pixel);
+ bytestream_put_le16(&out, pixel);
}
break;
default: