On 12/03/2012 12:26 PM, Kostya Shishkov wrote:
>> +static int get_code(GetBitContext *gb, int nbits)
>> > +{
>> > +    if (nbits == 1) {
>> > +        skip_bits1(gb);
> looks like very effective coding
> 
>> > +        return 0;
>> > +    } else {
>> > +        return get_sbits(gb, nbits);
>> > +    }
>> > +}

The only way nbits can be 1 is when bits_per_coded_sample is 16 and
sample_shift is 15. That seems like a pretty rare use case. Which makes
it even weirder to have it special-cased like that. Maybe a sample shift
of 15 is specifically only used by the encoder for silence blocks?

-Justin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to