From 89a0cec7903da5dceb2bd027d16a82773146e35a Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Mon, 10 Jun 2024 00:11:05 +0200 Subject: [PATCH] avcodec/msmpeg4enc: Combine writing bits Signed-off-by: Andreas Rheinhardt --- libavcodec/msmpeg4enc.c | 3 +-- 1 file changed, 1 insertion(+), 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)); } }