aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-06-10 00:11:05 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-06-20 18:58:38 +0200
commit89a0cec7903da5dceb2bd027d16a82773146e35a (patch)
tree47f43c689fb0ae2c1213c13e9a95d480270c448a
parenta1a8a03373d7a4f13b38c79870aa12f2e3118449 (diff)
downloadffmpeg-89a0cec7903da5dceb2bd027d16a82773146e35a.tar.gz
avcodec/msmpeg4enc: Combine writing bits
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavcodec/msmpeg4enc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/msmpeg4enc.c b/libavcodec/msmpeg4enc.c
index 642a0ff100..3103a73663 100644
--- a/libavcodec/msmpeg4enc.c
+++ b/libavcodec/msmpeg4enc.c
@@ -71,8 +71,7 @@ void ff_msmpeg4_code012(PutBitContext *pb, int n)
if (n == 0) {
put_bits(pb, 1, 0);
} else {
- put_bits(pb, 1, 1);
- put_bits(pb, 1, (n >= 2));
+ put_bits(pb, 2, 2 | (n >= 2));
}
}