aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/wma.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-09-26 22:50:41 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-10-31 21:44:48 +0100
commit5615f9dab4e7f911ce8799c34c0ca425b0e2a090 (patch)
treed0e717c4afb84faa16fe432fe1b00d32c9192aaa /libavcodec/wma.h
parent7e2120c4d955a99d004a2ac9b690233027fae1fb (diff)
downloadffmpeg-5615f9dab4e7f911ce8799c34c0ca425b0e2a090.tar.gz
avcodec/wmaprodec: Avoid superfluous VLC structures
For all VLCs here, the number of bits of the VLC is write-only, because it is hardcoded at the call site. Therefore one can replace these VLC structures with the only thing that is actually used: The pointer to the VLCElem table. And in most cases one can even avoid this. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/wma.h')
-rw-r--r--libavcodec/wma.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/wma.h b/libavcodec/wma.h
index 5dc604154d..3d0d872ea3 100644
--- a/libavcodec/wma.h
+++ b/libavcodec/wma.h
@@ -155,7 +155,7 @@ int ff_wma_total_gain_to_bits(int total_gain);
int ff_wma_end(AVCodecContext *avctx);
unsigned int ff_wma_get_large_val(GetBitContext *gb);
int ff_wma_run_level_decode(AVCodecContext *avctx, GetBitContext *gb,
- VLC *vlc, const float *level_table,
+ const VLCElem *vlc, const float *level_table,
const uint16_t *run_table, int version,
WMACoef *ptr, int offset, int num_coefs,
int block_len, int frame_len_bits,