You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
ffmpeg: drop useless framerate assignments
If the input stream framerate is known, it will be configured on the relevant filtergraph input and get propagated to the output stream in the above line. That makes these assignments redundant.
This commit is contained in:
@@ -3293,10 +3293,6 @@ static int init_output_stream_encode(OutputStream *ost, AVFrame *frame)
|
|||||||
if (enc_ctx->codec_type == AVMEDIA_TYPE_VIDEO) {
|
if (enc_ctx->codec_type == AVMEDIA_TYPE_VIDEO) {
|
||||||
if (!ost->frame_rate.num)
|
if (!ost->frame_rate.num)
|
||||||
ost->frame_rate = av_buffersink_get_frame_rate(ost->filter->filter);
|
ost->frame_rate = av_buffersink_get_frame_rate(ost->filter->filter);
|
||||||
if (ist && !ost->frame_rate.num)
|
|
||||||
ost->frame_rate = ist->framerate;
|
|
||||||
if (ist && !ost->frame_rate.num)
|
|
||||||
ost->frame_rate = ist->st->r_frame_rate;
|
|
||||||
if (ist && !ost->frame_rate.num && !ost->max_frame_rate.num) {
|
if (ist && !ost->frame_rate.num && !ost->max_frame_rate.num) {
|
||||||
ost->frame_rate = (AVRational){25, 1};
|
ost->frame_rate = (AVRational){25, 1};
|
||||||
av_log(NULL, AV_LOG_WARNING,
|
av_log(NULL, AV_LOG_WARNING,
|
||||||
|
Reference in New Issue
Block a user