1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

avcodec/msmpeg4enc: Inline constant

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2025-03-07 15:42:18 +01:00
parent c88614662c
commit 248a6578a3

View File

@@ -354,9 +354,8 @@ static void msmpeg4v2_encode_motion(MpegEncContext * s, int val)
int range, bit_size, sign, code, bits; int range, bit_size, sign, code, bits;
if (val == 0) { if (val == 0) {
/* zero vector */ /* zero vector; corresponds to ff_mvtab[0] */
code = 0; put_bits(&s->pb, 1, 0x1);
put_bits(&s->pb, ff_mvtab[code][1], ff_mvtab[code][0]);
} else { } else {
bit_size = s->f_code - 1; bit_size = s->f_code - 1;
range = 1 << bit_size; range = 1 << bit_size;