mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
avfilter/vf_tinterlace: check clone return value
Inspired by: 3a16ec19d2
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
0a382aa99b
commit
6a71efff33
1 changed files with 2 additions and 0 deletions
|
|
@ -263,6 +263,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *picref)
|
|||
case MODE_DROP_ODD: /* only output even frames, odd frames are dropped; height unchanged, half framerate */
|
||||
case MODE_DROP_EVEN: /* only output odd frames, even frames are dropped; height unchanged, half framerate */
|
||||
out = av_frame_clone(tinterlace->mode == MODE_DROP_EVEN ? cur : next);
|
||||
if (!out)
|
||||
return AVERROR(ENOMEM);
|
||||
av_frame_free(&tinterlace->next);
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue