avcodec/bitstream: check codes in ff_init_vlc_sparse()