use av_get_bits_per_sample