avcodec/get_bits: add assertion to limit ouptut value of get_bits