aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/msmpeg4dec.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-09-24 19:07:50 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-10-31 20:47:00 +0100
commit36b5f71b1fbc4757e3b8f1f5fe666553bfb4ce1f (patch)
tree1da90a1131682334c65f9b261a01f597dcbd9efd /libavcodec/msmpeg4dec.h
parent5a694d62c52a119729aa8234d097644a722f5f01 (diff)
downloadffmpeg-36b5f71b1fbc4757e3b8f1f5fe666553bfb4ce1f.tar.gz
avcodec/msmpeg4dec: 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 some cases one can even avoid this. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/msmpeg4dec.h')
-rw-r--r--libavcodec/msmpeg4dec.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/msmpeg4dec.h b/libavcodec/msmpeg4dec.h
index ad41eea9d4..5daa7c6bc3 100644
--- a/libavcodec/msmpeg4dec.h
+++ b/libavcodec/msmpeg4dec.h
@@ -28,8 +28,8 @@
#define INTER_INTRA_VLC_BITS 3
#define MB_NON_INTRA_VLC_BITS 9
-extern VLC ff_mb_non_intra_vlc[4];
-extern VLC ff_inter_intra_vlc;
+extern const VLCElem *ff_mb_non_intra_vlc[4];
+extern VLCElem ff_inter_intra_vlc[8];
int ff_msmpeg4_decode_init(AVCodecContext *avctx);
int ff_msmpeg4_decode_picture_header(MpegEncContext *s);