diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-12-15 02:25:41 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-12-22 11:39:57 +0100 |
commit | dc2fc5a919608e3937137f11548f4be5ee99523d (patch) | |
tree | 2ccc941ad1ad9632a6af52fb15f9266b98939c32 /fftools/ffmpeg_filter.c | |
parent | 6916105b11fb2fbb6fb1698da47dc061c995afab (diff) | |
download | ffmpeg-dc2fc5a919608e3937137f11548f4be5ee99523d.tar.gz |
fftools/ffmpeg_filter: only set framerate for video
Otherwise an unitialized stack value would be copied to FPSConvContext.
As it's then never used, it tends not to be a problem in practice,
however it is UB and some compilers warn about it.
Diffstat (limited to 'fftools/ffmpeg_filter.c')
-rw-r--r-- | fftools/ffmpeg_filter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c index 87ab2ca976..c1c3014453 100644 --- a/fftools/ffmpeg_filter.c +++ b/fftools/ffmpeg_filter.c @@ -2017,9 +2017,9 @@ static int choose_out_timebase(OutputFilterPriv *ofp, AVFrame *frame) if (!(tb.num > 0 && tb.den > 0)) tb = frame->time_base; + fps->framerate = fr; finish: ofp->tb_out = tb; - fps->framerate = fr; ofp->tb_out_locked = 1; return 0; |