mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/mpeg12enc: Simplify writing startcodes
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
4f2719a239
commit
7e61e77c4e
|
@ -271,11 +271,10 @@ static av_cold int encode_init(AVCodecContext *avctx)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void put_header(MpegEncContext *s, int header)
|
static void put_header(MpegEncContext *s, uint32_t header)
|
||||||
{
|
{
|
||||||
align_put_bits(&s->pb);
|
align_put_bits(&s->pb);
|
||||||
put_bits(&s->pb, 16, header >> 16);
|
put_bits32(&s->pb, header);
|
||||||
put_sbits(&s->pb, 16, header);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* put sequence header if needed */
|
/* put sequence header if needed */
|
||||||
|
|
Loading…
Reference in New Issue