Re: [FFmpeg-devel] [PATCH] avcodec/get_bits: declare VLC table args as const

2022-06-13 Thread Leo Izen
On 6/12/22 16:01, Andreas Rheinhardt wrote: Leo Izen: Declaring the VLC table as const allows a caller to call get_vlc2() with a pre-generated static const table without generating warnings for -Wdiscarded-qualifiers. --- libavcodec/get_bits.h | 4 ++-- 1 file changed, 2 insertions(+), 2 dele

Re: [FFmpeg-devel] [PATCH] avcodec/get_bits: declare VLC table args as const

2022-06-12 Thread Andreas Rheinhardt
Leo Izen: > Declaring the VLC table as const allows a caller to call get_vlc2() > with a pre-generated static const table without generating warnings > for -Wdiscarded-qualifiers. > --- > libavcodec/get_bits.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/libavcodec