The earlier code allowed callers to use arbitrary values as symbols_size as long as no symbols were present.
Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -260,7 +260,7 @@ int ff_vlc_init_sparse(VLC *vlc, int nb_bits, int nb_codes, · 259 unmodified lines | ||
| 260 | 260 | if (ret < 0) |
| 261 | 261 | return ret; |
| 262 | 262 | |
| 263 | − av_assert0(symbols_size <= 2 || !symbols); | |
| 263 | + av_assert0(symbols_size <= 2U); | |
| 264 | 264 | j = 0; |
| 265 | 265 | #define COPY(condition)\ |
| 266 | 266 | for (int i = 0; i < nb_codes; i++) { \ |