[FFmpeg-cvslog] avcodec/msmpeg4enc: Combine writing bits
Andreas Rheinhardt
git at videolan.org
Thu Jun 20 20:00:49 EEST 2024
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Mon Jun 10 00:11:05 2024 +0200| [89a0cec7903da5dceb2bd027d16a82773146e35a] | committer: Andreas Rheinhardt
avcodec/msmpeg4enc: Combine writing bits
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=89a0cec7903da5dceb2bd027d16a82773146e35a
---
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));
}
}
More information about the ffmpeg-cvslog
mailing list