summaryrefslogtreecommitdiff
path: root/libavcodec/vlc.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-18 08:16:36 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-18 12:20:16 +0200
commit6401a5d4b836a08090bc82e5d3101cc1873ae2a7 (patch)
tree9759c07d0eef01d9dd49759601f81d992aed9c05 /libavcodec/vlc.h
parent92396cee602320c714713ca2d93b53684ad57000 (diff)
Revert "avcodec/vlc: Add macro for ff_init_vlc_sparse()"
This reverts commit 61669b7c40b8dc3a0841768fb39c7567513b7cfc. This commit broke building with MSVC due to its spec-incompliant handling of ',' in __VA_ARGS__: These are not treated as argument separators for further macros, so that in our case the init_vlc2() macro is treated as having only one argument whenever the init_vlc() macro is used. See [1] for further details. [1]: https://reviews.llvm.org/D69626 Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/vlc.h')
-rw-r--r--libavcodec/vlc.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/libavcodec/vlc.h b/libavcodec/vlc.h
index 7cb323b62c..42ccddf3fc 100644
--- a/libavcodec/vlc.h
+++ b/libavcodec/vlc.h
@@ -35,12 +35,7 @@ typedef struct RL_VLC_ELEM {
uint8_t run;
} RL_VLC_ELEM;
-#define INIT_VLC_DEFAULT_SIZES(ptr) \
- (ptr), sizeof((ptr)[0]), sizeof((ptr)[0])
-
-#define init_vlc(...) init_vlc2(__VA_ARGS__)
-
-#define init_vlc2(vlc, nb_bits, nb_codes, \
+#define init_vlc(vlc, nb_bits, nb_codes, \
bits, bits_wrap, bits_size, \
codes, codes_wrap, codes_size, \
flags) \