mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/msmpeg4enc: Combine writing bits
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
a1a8a03373
commit
89a0cec790
|
@ -71,8 +71,7 @@ void ff_msmpeg4_code012(PutBitContext *pb, int n)
|
||||||
if (n == 0) {
|
if (n == 0) {
|
||||||
put_bits(pb, 1, 0);
|
put_bits(pb, 1, 0);
|
||||||
} else {
|
} else {
|
||||||
put_bits(pb, 1, 1);
|
put_bits(pb, 2, 2 | (n >= 2));
|
||||||
put_bits(pb, 1, (n >= 2));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue