[FFmpeg-cvslog] avcodec/mpeg12enc: Simplify writing startcodes
Andreas Rheinhardt
git at videolan.org
Wed Jun 12 14:16:34 EEST 2024
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sun Apr 21 19:47:48 2024 +0200| [7e61e77c4ecc14a7f68822a1da7861b39764c24f] | committer: Andreas Rheinhardt
avcodec/mpeg12enc: Simplify writing startcodes
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7e61e77c4ecc14a7f68822a1da7861b39764c24f
---
libavcodec/mpeg12enc.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/libavcodec/mpeg12enc.c b/libavcodec/mpeg12enc.c
index 304cfb9046..ba56f0c37a 100644
--- a/libavcodec/mpeg12enc.c
+++ b/libavcodec/mpeg12enc.c
@@ -271,11 +271,10 @@ static av_cold int encode_init(AVCodecContext *avctx)
return 0;
}
-static void put_header(MpegEncContext *s, int header)
+static void put_header(MpegEncContext *s, uint32_t header)
{
align_put_bits(&s->pb);
- put_bits(&s->pb, 16, header >> 16);
- put_sbits(&s->pb, 16, header);
+ put_bits32(&s->pb, header);
}
/* put sequence header if needed */
More information about the ffmpeg-cvslog
mailing list