mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-28 12:32:17 +02:00
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>
This commit is contained in:
parent
bff6fbead8
commit
6d3b70c27e
@ -170,7 +170,9 @@ static int process_work_frame(AVFilterContext *ctx)
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (!s->f0) {
|
if (!s->f0) {
|
||||||
s->work = av_frame_clone(s->f1);
|
av_assert1(s->flush);
|
||||||
|
s->work = s->f1;
|
||||||
|
s->f1 = NULL;
|
||||||
} else {
|
} else {
|
||||||
if (work_pts >= s->pts1 + s->delta && s->flush)
|
if (work_pts >= s->pts1 + s->delta && s->flush)
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user