[FFmpeg-cvslog] avcodec/exr: use uint16/uint8 where possible
Paul B Mahol
git at videolan.org
Sun Sep 10 23:38:07 EEST 2023
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Sep 10 22:14:41 2023 +0200| [e26506cb3b2a8c1ee28c13c328e4dcb037555f9e] | committer: Paul B Mahol
avcodec/exr: use uint16/uint8 where possible
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e26506cb3b2a8c1ee28c13c328e4dcb037555f9e
---
libavcodec/exr.c | 6 +++---
1 file 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,
More information about the ffmpeg-cvslog
mailing list