> On May 12, 2019, at 1:39 PM, Paul B Mahol <[email protected]> wrote: > > On 5/12/19, Baptiste Coudurier <[email protected] > <mailto:[email protected]>> wrote: >> Hi Tomas >> >>> On May 12, 2019, at 6:47 AM, Tomas Härdin <[email protected]> wrote: >>> >>> fre 2019-05-10 klockan 08:50 -0700 skrev Baptiste Coudurier: >>>> +static inline int get_ue_golomb(GetBitContext *gb) { >>>> + int i, v; >>>> + for (i = 0; i < 32 && !get_bits1(gb); i++) >>>> + ; >>>> + for (v = 1; i--;) >>>> + v = (v << 1) | get_bits1(gb); >>> >>> Isn't there already a function to get variable number of bits? >> >> get_bits doesn’t work for n == 0 > > There is get_bitsz. Or I misunderstood?
Nice, updated. — Baptiste _______________________________________________ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
