[FFmpeg-cvslog] avcodec/exr: Dont use 64bits to hold 6bits
Michael Niedermayer
git at videolan.org
Wed Apr 3 15:44:22 EEST 2024
ffmpeg | branch: release/7.0 | Michael Niedermayer <michael at niedermayer.cc> | Mon Apr 1 02:18:57 2024 +0200| [87e5bc918a4e25455860a730aa6986d3f18dc5ca] | committer: Michael Niedermayer
avcodec/exr: Dont use 64bits to hold 6bits
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit e3984de6ffd6068efcfb5c576f1ec788211608fe)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=87e5bc918a4e25455860a730aa6986d3f18dc5ca
---
libavcodec/exr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/exr.c b/libavcodec/exr.c
index f4d974d09e..e680f9b9e0 100644
--- a/libavcodec/exr.c
+++ b/libavcodec/exr.c
@@ -334,7 +334,7 @@ static int huf_unpack_enc_table(GetByteContext *gb,
return ret;
for (; im <= iM; im++) {
- uint64_t l;
+ int l;
if (get_bits_left(&gbit) < 6)
return AVERROR_INVALIDDATA;
l = freq[im] = get_bits(&gbit, 6);
More information about the ffmpeg-cvslog
mailing list