[FFmpeg-cvslog] avcodec/exr: Dont use 64bits to hold 6bits
Michael Niedermayer
git at videolan.org
Wed Apr 3 01:46:41 EEST 2024
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Mon Apr 1 02:18:57 2024 +0200| [e3984de6ffd6068efcfb5c576f1ec788211608fe] | committer: Michael Niedermayer
avcodec/exr: Dont use 64bits to hold 6bits
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e3984de6ffd6068efcfb5c576f1ec788211608fe
---
libavcodec/exr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/exr.c b/libavcodec/exr.c
index 09f2fca109..8bd39f78a4 100644
--- a/libavcodec/exr.c
+++ b/libavcodec/exr.c
@@ -335,7 +335,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