Files
FFmpeg/libavcodec
Andreas Rheinhardt 76a4356a75 avcodec/atrac9dec: Don't create VLCs that are never used
The ATRAC9 decoder creates VLCs with parameters contained in
HuffmanCodebooks; some of these HuffmanCodebooks are empty and yet
VLCs (that were completely unused*) were created from them. Said VLC
contained a single table with 512 VLC_TYPE[2] entries, each of which
indicated that this is an invalid code. This commit stops creating said
VLCs.

*: read_coeffs_coarse() uses the HuffmanCodebook
at9_huffman_coeffs[cb][prec][cbi]. prec is c->precision_coarse[i] + 1
and every precision_coarse entry is in the 1..15 range after
calc_precision(), so prec is >= 2 (all codebooks with prec < 2 are
empty). The remaining empty codebooks are those with cb == 1 and cbi ==
0, yet this is impossible, too: cb is given by c->codebookset[i] and
this is always 0 if i < 8 (because those are never set to anything else
in calc_codebook_idx()) and cbi is given by at9_q_unit_to_codebookidx[i]
which is never zero if i >= 8.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2020-12-08 17:51:46 +01:00
..
2020-10-15 22:53:56 +02:00
2020-08-26 21:13:38 +02:00
2020-08-26 21:13:38 +02:00
2020-12-08 17:51:44 +01:00
2020-12-08 17:51:45 +01:00
2020-11-12 15:55:16 +01:00
2020-10-24 19:11:12 +02:00
2020-11-10 02:14:29 +01:00
2020-11-24 11:35:03 +01:00
2020-11-24 11:35:03 +01:00
2020-07-20 18:41:09 +02:00
2020-07-20 18:41:09 +02:00
2020-12-08 17:51:45 +01:00
2020-12-08 17:51:46 +01:00
2020-10-19 05:15:00 +02:00
2020-11-24 09:38:35 +01:00
2020-11-24 09:38:35 +01:00
2020-11-24 09:38:35 +01:00
2020-12-08 17:51:46 +01:00
2020-11-11 18:36:09 +01:00
2020-07-05 19:59:49 +02:00
2020-09-01 14:19:19 +02:00
2020-11-24 09:38:35 +01:00
2020-11-24 09:38:35 +01:00
2020-11-24 09:38:35 +01:00
2020-07-20 18:41:09 +02:00
2020-12-08 17:51:44 +01:00
2020-11-02 22:57:23 +00:00
2020-10-23 10:37:04 +02:00
2020-10-16 00:38:50 +02:00