diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-06-10 00:11:05 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-06-20 18:58:38 +0200 |
commit | 89a0cec7903da5dceb2bd027d16a82773146e35a (patch) | |
tree | 47f43c689fb0ae2c1213c13e9a95d480270c448a | |
parent | a1a8a03373d7a4f13b38c79870aa12f2e3118449 (diff) | |
download | ffmpeg-89a0cec7903da5dceb2bd027d16a82773146e35a.tar.gz |
avcodec/msmpeg4enc: Combine writing bits
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavcodec/msmpeg4enc.c | 3 |
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)); } } |