diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-03-08 02:55:28 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-03-13 23:29:02 +0100 |
commit | c1cdaef5cef731412fb5955206e435a171f778de (patch) | |
tree | e448f51a5ce018b90752b843cdc15c40fa09f8b6 /libavcodec/vvc/vvc_intra.c | |
parent | 98a2ade63063265c32232fc07ba98073b184245b (diff) | |
download | ffmpeg-c1cdaef5cef731412fb5955206e435a171f778de.tar.gz |
avcodec/hevc_cabac: Let compiler count offsets
This is easily possible with an X macro.
Using an enum for the offsets also allows to remove
two arrays which are not really needed and will typically
be optimized away by the compiler: The first just exists
to count the number of syntax elements*, the second one
exists to get offset[CONSTANT]. These constants were
of type enum SyntaxElement and this enum was only used
in hevc_cabac.c (although it was declared in hevcdec.h);
it is now no longer needed at all and has therefore been
removed.
The first of these arrays led to a warning from Clang
which is fixed by this commit:
warning: variable 'num_bins_in_se' is not needed and will
not be emitted [-Wunneeded-internal-declaration]
*: One could also just added a trailing SYNTAX_ELEMENT_NB
to the SyntaxElement enum for this purpose.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/vvc/vvc_intra.c')
0 files changed, 0 insertions, 0 deletions