mirror of https://git.ffmpeg.org/ffmpeg.git
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.
This commit is contained in:
parent
6916105b11
commit
dc2fc5a919
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue