mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-30 11:22:14 +00:00
Merge commit '3a16ec19d2426457419cb8a7304f97982699efda'
* commit '3a16ec19d2426457419cb8a7304f97982699efda': vf_interlace: check one av_frame_clone allocation Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
0a382aa99b
@ -184,6 +184,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);
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user