[FFmpeg-devel] [PATCH 50/57] avcodec/mpeg12enc: Simplify writing startcodes
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Tue Apr 30 00:14:31 EEST 2024
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
libavcodec/mpeg12enc.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/libavcodec/mpeg12enc.c b/libavcodec/mpeg12enc.c
index ea193e007a..5f9974ba21 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 */
--
2.40.1
More information about the ffmpeg-devel
mailing list