Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-11-16 15:40:08 +0300
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-12-08 19:51:47 +0300
commitc14656c17012cf3b47b0c9b40769ddc72dafdb16 (patch)
tree2e42db2cbadf7ace453792c852ce85357a840ccc /libavcodec/imm4.c
parentd9e6e9360d6b79f4517ec79bcc2d8511cd064e6c (diff)
avcodec/imm4: Make better use of symbols table
Also inline the VLC's number of bits while at it. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/imm4.c')
-rw-r--r--libavcodec/imm4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/imm4.c b/libavcodec/imm4.c
index 85d8526bc8..85046f7d06 100644
--- a/libavcodec/imm4.c
+++ b/libavcodec/imm4.c
@@ -61,7 +61,7 @@ static const uint8_t inter_cb[] = {
};
static const uint8_t cbplo_symbols[] = {
- 3, 4, 19, 20, 35, 36, 51, 52
+ 0, 0, 1, 1, 2, 2, 3, 3
};
static const uint8_t cbplo_bits[] = {
@@ -236,7 +236,7 @@ static int decode_intra(AVCodecContext *avctx, GetBitContext *gb, AVFrame *frame
for (x = 0; x < avctx->width; x += 16) {
unsigned flag, cbphi, cbplo;
- cbplo = get_vlc2(gb, cbplo_tab.table, cbplo_tab.bits, 1) >> 4;
+ cbplo = get_vlc2(gb, cbplo_tab.table, CBPLO_VLC_BITS, 1);
flag = get_bits1(gb);
cbphi = get_cbphi(gb, 1);