diff options
author | Anton Khirnov <anton@khirnov.net> | 2024-09-12 18:09:58 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-09-26 18:29:40 +0200 |
commit | ac578ccb8ec47c9175f1b1020058e5f0141c5527 (patch) | |
tree | bb603c53288b25bfe6d389fecab4edce773e74ea /fftools/ffmpeg_filter.c | |
parent | cefc7d1ff44880bc3391071ad049e4527a3b049f (diff) | |
download | ffmpeg-ac578ccb8ec47c9175f1b1020058e5f0141c5527.tar.gz |
fftools/ffmpeg_filter: drop a redundant check
OutputFilterOptions.frame_rates are always NULL if the conditional is
true.
Diffstat (limited to 'fftools/ffmpeg_filter.c')
-rw-r--r-- | fftools/ffmpeg_filter.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c index 9ffbb8fbf4..63462300f9 100644 --- a/fftools/ffmpeg_filter.c +++ b/fftools/ffmpeg_filter.c @@ -856,8 +856,7 @@ int ofilter_bind_ost(OutputFilter *ofilter, OutputStream *ost, ofp->fps.vsync_method = opts->vsync_method; ofp->fps.framerate = ost->frame_rate; ofp->fps.framerate_max = ost->max_frame_rate; - ofp->fps.framerate_supported = ost->force_fps || !opts->enc ? - NULL : opts->frame_rates; + ofp->fps.framerate_supported = opts->frame_rates; // reduce frame rate for mpeg4 to be within the spec limits if (opts->enc && opts->enc->id == AV_CODEC_ID_MPEG4) |