avcodec/mpeg12enc: Simplify writing startcodes

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2024-04-21 19:47:48 +02:00
parent 4f2719a239
commit 7e61e77c4e
1 changed files with 2 additions and 3 deletions

View File

@ -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 */