vf_fps: Fix memory leak introduced by eea64ef4

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
pull/273/head
Thierry Foucu 7 years ago committed by Michael Niedermayer
parent ed48e22748
commit 42a41c3956
  1. 1
      libavfilter/vf_fps.c

@ -171,6 +171,7 @@ static int request_frame(AVFilterLink *outlink)
s->frames_out++; s->frames_out++;
if (j > 0) s->dup++; if (j > 0) s->dup++;
} }
av_frame_free(&buf);
} else { } else {
/* for delta less or equal to 0, we should drop the frame, /* for delta less or equal to 0, we should drop the frame,
* otherwise, we will have one or more extra frames */ * otherwise, we will have one or more extra frames */

Loading…
Cancel
Save