vf_interlace: check one av_frame_clone allocation
This commit is contained in:
parent
c673fc919c
commit
3a16ec19d2
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue