]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_framerate.c
avutil/cpu: Remove deprecated functions
[ffmpeg] / libavfilter / vf_framerate.c
index 6c8d01c94bb629c2f9dea29e8aa66186d9e27357..f5085705a4afa0add950199516bf881e720c47c3 100644 (file)
@@ -170,7 +170,9 @@ static int process_work_frame(AVFilterContext *ctx)
         return 0;
 
     if (!s->f0) {
-        s->work = av_frame_clone(s->f1);
+        av_assert1(s->flush);
+        s->work = s->f1;
+        s->f1 = NULL;
     } else {
         if (work_pts >= s->pts1 + s->delta && s->flush)
             return 0;