You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
vf_interlace: check one av_frame_clone allocation
This commit is contained in:
@@ -185,6 +185,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
|
|||||||
av_log(ctx, AV_LOG_WARNING,
|
av_log(ctx, AV_LOG_WARNING,
|
||||||
"video is already interlaced, adjusting framerate only\n");
|
"video is already interlaced, adjusting framerate only\n");
|
||||||
out = av_frame_clone(s->cur);
|
out = av_frame_clone(s->cur);
|
||||||
|
if (!out)
|
||||||
|
return AVERROR(ENOMEM);
|
||||||
out->pts /= 2; // adjust pts to new framerate
|
out->pts /= 2; // adjust pts to new framerate
|
||||||
ret = ff_filter_frame(outlink, out);
|
ret = ff_filter_frame(outlink, out);
|
||||||
s->got_output = 1;
|
s->got_output = 1;
|
||||||
|
Reference in New Issue
Block a user