ffmpeg | branch: master | Andreas Rheinhardt <[email protected]> | Sun Apr 21 19:47:48 2024 +0200| [7e61e77c4ecc14a7f68822a1da7861b39764c24f] | committer: Andreas Rheinhardt
avcodec/mpeg12enc: Simplify writing startcodes Signed-off-by: Andreas Rheinhardt <[email protected]> > 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 */ _______________________________________________ ffmpeg-cvslog mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
