1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avfilter/vf_telecine: avoid possible null-pointer dereference

This commit is contained in:
Paul B Mahol 2020-04-14 12:12:42 +02:00
parent 5633f9a8a2
commit ce24b1def0

View File

@ -240,8 +240,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpicref)
for (i = 0; i < nout; i++) { for (i = 0; i < nout; i++) {
AVFrame *frame = av_frame_clone(s->frame[i]); AVFrame *frame = av_frame_clone(s->frame[i]);
int interlaced = frame->interlaced_frame; int interlaced = frame ? frame->interlaced_frame : 0;
int tff = frame->top_field_first; int tff = frame ? frame->top_field_first : 0;
if (!frame) { if (!frame) {
av_frame_free(&inpicref); av_frame_free(&inpicref);