Browse Source

lavf: do not derive timebase from avg_frame_rate

avg_frame_rate is the _average_ framerate, its presence does not
guarantee that the stream is CFR, so it should not be used for setting
the timebase.
master
Anton Khirnov 4 years ago
parent
commit
04feb1c038
1 changed files with 0 additions and 3 deletions
  1. +0
    -3
      libavformat/utils.c

+ 0
- 3
libavformat/utils.c View File

@@ -5892,9 +5892,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
enc_ctx->time_base = dec_ctx->time_base;
}

if (ost->avg_frame_rate.num)
enc_ctx->time_base = av_inv_q(ost->avg_frame_rate);

av_reduce(&enc_ctx->time_base.num, &enc_ctx->time_base.den,
enc_ctx->time_base.num, enc_ctx->time_base.den, INT_MAX);



Loading…
Cancel
Save