diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-01-23 16:54:51 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-01-26 13:57:00 +0100 |
commit | d9f5bd15fd4abd23c2a1ff1f578046c188e9d91e (patch) | |
tree | d6a3d39edc54964dc17f6e714e46c2d2571f40dd /libavcodec/sp5xdec.c | |
parent | f15477169ea9947336448af2772087c8fa1c6cdf (diff) |
avcodec/sp5x: Remove unused quant tables
Only the fifth one is used.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/sp5xdec.c')
-rw-r--r-- | libavcodec/sp5xdec.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/sp5xdec.c b/libavcodec/sp5xdec.c index 302fdb073e..0b2b2d8418 100644 --- a/libavcodec/sp5xdec.c +++ b/libavcodec/sp5xdec.c @@ -35,7 +35,6 @@ int ff_sp5x_process_packet(AVCodecContext *avctx, AVPacket *avpkt) const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; AVBufferRef *buf_recoded; - const int qscale = 5; uint8_t *recoded; int i = 0, j = 0; @@ -52,8 +51,8 @@ int ff_sp5x_process_packet(AVCodecContext *avctx, AVPacket *avpkt) recoded[j++] = 0xD8; memcpy(recoded+j, &sp5x_data_dqt[0], sizeof(sp5x_data_dqt)); - memcpy(recoded+j+5, &sp5x_quant_table[qscale * 2], 64); - memcpy(recoded+j+70, &sp5x_quant_table[(qscale * 2) + 1], 64); + memcpy(recoded + j + 5, &sp5x_qscale_five_quant_table[0], 64); + memcpy(recoded + j + 70, &sp5x_qscale_five_quant_table[1], 64); j += sizeof(sp5x_data_dqt); memcpy(recoded+j, &sp5x_data_dht[0], sizeof(sp5x_data_dht)); |