mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 11:19:55 +00:00
avcodec/get_bits: cosmetics
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
a289cc5643
commit
c2b540d0c7
@ -234,9 +234,9 @@ static inline void refill_32(GetBitContext *s, int is_le)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (is_le)
|
if (is_le)
|
||||||
s->cache = (uint64_t)AV_RL32(s->buffer + (s->index >> 3)) << s->bits_left | s->cache;
|
s->cache = (uint64_t)AV_RL32(s->buffer + (s->index >> 3)) << s->bits_left | s->cache;
|
||||||
else
|
else
|
||||||
s->cache = s->cache | (uint64_t)AV_RB32(s->buffer + (s->index >> 3)) << (32 - s->bits_left);
|
s->cache = s->cache | (uint64_t)AV_RB32(s->buffer + (s->index >> 3)) << (32 - s->bits_left);
|
||||||
s->index += 32;
|
s->index += 32;
|
||||||
s->bits_left += 32;
|
s->bits_left += 32;
|
||||||
}
|
}
|
||||||
@ -249,9 +249,9 @@ static inline void refill_64(GetBitContext *s, int is_le)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (is_le)
|
if (is_le)
|
||||||
s->cache = AV_RL64(s->buffer + (s->index >> 3));
|
s->cache = AV_RL64(s->buffer + (s->index >> 3));
|
||||||
else
|
else
|
||||||
s->cache = AV_RB64(s->buffer + (s->index >> 3));
|
s->cache = AV_RB64(s->buffer + (s->index >> 3));
|
||||||
s->index += 64;
|
s->index += 64;
|
||||||
s->bits_left = 64;
|
s->bits_left = 64;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user