diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2025-03-02 01:03:10 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2025-03-26 03:15:05 +0100 |
commit | fca1ac2cba9a6ff5ebadeca45e86e7b1728b59fc (patch) | |
tree | 30dd344c07297b428dadd86c7ac584acd06b5296 /libavcodec/mpegvideo_enc.c | |
parent | e8a8a13128f54da16e2be088331562edf2bfc6d2 (diff) | |
download | ffmpeg-fca1ac2cba9a6ff5ebadeca45e86e7b1728b59fc.tar.gz |
avcodec/mpeg4videoenc: Add Mpeg4EncContext and move time_increment_bits
It is only ever used by the main encoder thread.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/mpegvideo_enc.c')
-rw-r--r-- | libavcodec/mpegvideo_enc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index 2cba4deca3..ab67f5444d 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -746,7 +746,6 @@ av_cold int ff_mpv_encode_init(AVCodecContext *avctx) (1 << 16) - 1); return AVERROR(EINVAL); } - s->time_increment_bits = av_log2(avctx->time_base.den - 1) + 1; switch (avctx->codec->id) { #if CONFIG_MPEG1VIDEO_ENCODER || CONFIG_MPEG2VIDEO_ENCODER @@ -3919,7 +3918,7 @@ static int encode_picture(MPVMainEncContext *const m, const AVPacket *pkt) ff_msmpeg4_encode_picture_header(s); #endif else if (CONFIG_MPEG4_ENCODER && s->h263_pred) { - ret = ff_mpeg4_encode_picture_header(s); + ret = ff_mpeg4_encode_picture_header(m); if (ret < 0) return ret; } else if (CONFIG_RV10_ENCODER && s->codec_id == AV_CODEC_ID_RV10) { |