diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-04-21 19:47:48 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-06-12 11:56:06 +0200 |
commit | 7e61e77c4ecc14a7f68822a1da7861b39764c24f (patch) | |
tree | 02f8395838a63b2605fbbcf07148a1fc037e589f /libavcodec | |
parent | 4f2719a239e2efd9902922035c9cb16eb3a7138d (diff) | |
download | ffmpeg-7e61e77c4ecc14a7f68822a1da7861b39764c24f.tar.gz |
avcodec/mpeg12enc: Simplify writing startcodes
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mpeg12enc.c | 5 |
1 files 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 */ |