>> +/** >> + * 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) > I think the cast is not really needed in this place, I'd change this part to just return get_val _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel
- Re: [libav-devel] [PATCH 1/7] Move VLC and RL_VLC... Luca Barbato
- [libav-devel] [PATCH 1/7] Move VLC and RL_VLC... Alexandra Hájková
- [libav-devel] [PATCH 4/7] cllc: Convert to the new bit... Alexandra Hájková
- [libav-devel] [PATCH 5/7] eamad: Convert to the new bi... Alexandra Hájková
- [libav-devel] [PATCH 2/7] attributes: Add av_unlikely ... Alexandra Hájková
- Re: [libav-devel] [PATCH 2/7] attributes: Add av_... Luca Barbato
- [libav-devel] [PATCH 7/7] mdec, eatqi, mpeg12: Convert... Alexandra Hájková
- [libav-devel] [PATCH 3/7] Add the new bitstream reader... Alexandra Hájková
- Re: [libav-devel] [PATCH 3/7] Add the new bitstre... Luca Barbato
- Re: [libav-devel] [PATCH 3/7] Add the new bit... Christophe Gisquet
- Re: [libav-devel] [PATCH 3/7] Add the new bit... Alexandra Hájková
- [libav-devel] [PATCH 3/7] Add the new bit... Alexandra Hájková
- Re: [libav-devel] [PATCH 3/7] Add the new bitstre... Kieran Kunhya
- Re: [libav-devel] [PATCH 3/7] Add the new bit... Luca Barbato
- Re: [libav-devel] [PATCH 3/7] Add the new bit... Alexandra Hájková
- Re: [libav-devel] [PATCH 3/7] Add the new... Derek Buitenhuis
- Re: [libav-devel] [PATCH 3/7] Add the... Luca Barbato
- Re: [libav-devel] [PATCH 3/7] Ad... Derek Buitenhuis
- Re: [libav-devel] [PATCH 3/7... Luca Barbato