return (s->buf_ptr - s->buf + s->data_out_size) * 8 + (long long)s->bit_cnt;
return (s->buf_ptr - s->buf + s->data_out_size) * 8 + (INT64)s->bit_cnt;
long long get_bit_count(PutBitContext *s){    return (s->buf_ptr - s->buf + s->data_out_size) * 8 + (long long)s->bit_cnt;}