fftools/ffmpeg_filter: Fix check

Fixes Coverity issues #1596529, #1596531.
Introduced in 8e35e33d42.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2024-04-22 23:22:09 +02:00
parent 67c7c44c79
commit 4c8a6631ad
1 changed files with 1 additions and 1 deletions

View File

@ -862,7 +862,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 ?
ofp->fps.framerate_supported = ost->force_fps || !opts->enc ?
NULL : opts->enc->supported_framerates;
// reduce frame rate for mpeg4 to be within the spec limits