Commit 3a6ddfb8 authored by Vittorio Giovara's avatar Vittorio Giovara

exr: check return value

CC: libav-stable@libav.org
Bug-Id: CID 1198259
parent e4cb6abb
......@@ -311,8 +311,9 @@ static int huf_unpack_enc_table(GetByteContext *gb,
int32_t im, int32_t iM, uint64_t *hcode)
{
GetBitContext gbit;
init_get_bits8(&gbit, gb->buffer, bytestream2_get_bytes_left(gb));
int ret = init_get_bits8(&gbit, gb->buffer, bytestream2_get_bytes_left(gb));
if (ret < 0)
return ret;
for (; im <= iM; im++) {
uint64_t l = hcode[im] = get_bits(&gbit, 6);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment