]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_interlace.c
vf_overlay: add eof_action switch
[ffmpeg] / libavfilter / vf_interlace.c
index aea4fdb822c54772ef5311092d7da4dbc29096b3..a05ab03a6dacc69826bec81e7e38d4c80231a385 100644 (file)
@@ -185,6 +185,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
         av_log(ctx, AV_LOG_WARNING,
                "video is already interlaced, adjusting framerate only\n");
         out = av_frame_clone(s->cur);
+        if (!out)
+            return AVERROR(ENOMEM);
         out->pts /= 2;  // adjust pts to new framerate
         ret = ff_filter_frame(outlink, out);
         s->got_output = 1;