You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
4xm: check the return value of read_huffman_tables().
CC:libav-stable@libav.org
This commit is contained in:
@@ -721,6 +721,10 @@ static int decode_i_frame(FourXContext *f, const uint8_t *buf, int length)
|
|||||||
}
|
}
|
||||||
|
|
||||||
prestream = read_huffman_tables(f, prestream);
|
prestream = read_huffman_tables(f, prestream);
|
||||||
|
if (!prestream) {
|
||||||
|
av_log(f->avctx, AV_LOG_ERROR, "Error reading Huffman tables.\n");
|
||||||
|
return AVERROR_INVALIDDATA;
|
||||||
|
}
|
||||||
|
|
||||||
init_get_bits(&f->gb, buf + 4, 8 * bitstream_size);
|
init_get_bits(&f->gb, buf + 4, 8 * bitstream_size);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user