aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/exr.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2023-09-10 22:14:41 +0200
committerPaul B Mahol <onemda@gmail.com>2023-09-10 22:44:39 +0200
commite26506cb3b2a8c1ee28c13c328e4dcb037555f9e (patch)
tree184cfe8813a6bea6c9e94ede86c1199d48602096 /libavcodec/exr.c
parentf95cb3d1343e84a0941c6e61c1c9ee812f344d58 (diff)
downloadffmpeg-e26506cb3b2a8c1ee28c13c328e4dcb037555f9e.tar.gz
avcodec/exr: use uint16/uint8 where possible
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 518066facf..8dcdbe6be8 100644
--- a/libavcodec/exr.c
+++ b/libavcodec/exr.c
@@ -760,8 +760,8 @@ static int pxr24_uncompress(const EXRContext *s, const uint8_t *src,
static void unpack_14(const uint8_t b[14], uint16_t s[16])
{
- unsigned short shift = (b[ 2] >> 2) & 15;
- unsigned short bias = (0x20 << shift);
+ uint16_t shift = (b[ 2] >> 2) & 15;
+ uint16_t bias = (0x20 << shift);
int i;
s[ 0] = (b[0] << 8) | b[1];
@@ -1870,7 +1870,7 @@ static int decode_header(EXRContext *s, AVFrame *frame)
continue;
} else if ((var_size = check_header_variable(s, "tiles",
"tiledesc", 22)) >= 0) {
- char tileLevel;
+ uint8_t tileLevel;
if (!s->is_tile)
av_log(s->avctx, AV_LOG_WARNING,