avfilter/vf_framerate: fix infinite loop with 1-frame input
authorMarton Balint <cus@passwd.hu>
Sun, 20 Dec 2020 18:32:56 +0000 (19:32 +0100)
committerMarton Balint <cus@passwd.hu>
Wed, 30 Dec 2020 22:47:53 +0000 (23:47 +0100)
commited735e657704371753aa2e087ac7cfd77db48f78
tree16a220d32c67f56c56d329b859c8e72826832ea0
parent8f3741a5e39f492a499121f14251e94edf398717
avfilter/vf_framerate: fix infinite loop with 1-frame input

Fixes infinite loop in:
ffmpeg -f lavfi -i testsrc=d=0.04 -vf framerate=50 -f null none

Signed-off-by: Marton Balint <cus@passwd.hu>
(cherry picked from commit 6d3b70c27ef1639784fdb3382e5a06b1afa3fe3e)
libavfilter/vf_framerate.c