2016-05-07 1:29 GMT+02:00 Luca Barbato <lu_z...@gentoo.org>:
>> +/**
>> + * Return one bit from the buffer.
>> + */
>> +static inline unsigned int bitstream_read_bit(BitstreamContext *s)
>> +{
>> +    if (av_unlikely(!s->bits_left))
>> +        refill_64(s);
>> +
>> +    return (uint8_t)get_val(s, 1);
>
> I'd use !!get_val(s, 1)

Seconded, all the more since that may have generated strange compiled
code (...).

-- 
Christophe
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to