History

avcodec/exr: Dont use 64bits to hold 6bits

Michael Niedermayer committed 2 years ago

Commit e3984de1 parent 589fa8a1 file · +1 −1Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/exr.c+1−1
@@ -335,7 +335,7 @@ static int huf_unpack_enc_table(GetByteContext *gb, · 334 unmodified lines
335 return ret;335 return ret;
336 336
337 for (; im <= iM; im++) {337 for (; im <= iM; im++) {
338 uint64_t l;338 int l;
339 if (get_bits_left(&gbit) < 6)339 if (get_bits_left(&gbit) < 6)
340 return AVERROR_INVALIDDATA;340 return AVERROR_INVALIDDATA;
341 l = freq[im] = get_bits(&gbit, 6);341 l = freq[im] = get_bits(&gbit, 6);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t