mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avcodec/mpegvideo_enc: move ff_side_data_set_encoder_stats() call to after the vbv retry code
This ensures the data matches the final values Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
ea7e4f8e6a
commit
360cebc9c8
@ -1789,8 +1789,6 @@ vbv_retry:
|
||||
|
||||
frame_end(s);
|
||||
|
||||
ff_side_data_set_encoder_stats(pkt, s->current_picture.f->quality, NULL, 0, s->pict_type);
|
||||
|
||||
if (CONFIG_MJPEG_ENCODER && s->out_format == FMT_MJPEG)
|
||||
ff_mjpeg_encode_picture_trailer(&s->pb, s->header_bits);
|
||||
|
||||
@ -1833,6 +1831,8 @@ vbv_retry:
|
||||
av_assert0(s->avctx->rc_max_rate);
|
||||
}
|
||||
|
||||
ff_side_data_set_encoder_stats(pkt, s->current_picture.f->quality, NULL, 0, s->pict_type);
|
||||
|
||||
if (s->avctx->flags & AV_CODEC_FLAG_PASS1)
|
||||
ff_write_pass1_stats(s);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user