[FFmpeg-cvslog] avcodec/exr: Dont use 64bits to hold 6bits

Michael Niedermayer git at videolan.org
Sun Apr 14 21:33:59 EEST 2024


ffmpeg | branch: release/4.4 | Michael Niedermayer <michael at niedermayer.cc> | Mon Apr  1 02:18:57 2024 +0200| [0f2cc7ecc39bb25f15fadf9b1ba358d3a7de243b] | 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=0f2cc7ecc39bb25f15fadf9b1ba358d3a7de243b
---

 libavcodec/exr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/exr.c b/libavcodec/exr.c
index eae90b602f..b1115352d0 100644
--- a/libavcodec/exr.c
+++ b/libavcodec/exr.c
@@ -333,7 +333,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