Commit ce24b1de authored by Paul B Mahol's avatar Paul B Mahol

avfilter/vf_telecine: avoid possible null-pointer dereference

parent 5633f9a8
......@@ -240,8 +240,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpicref)
for (i = 0; i < nout; i++) {
AVFrame *frame = av_frame_clone(s->frame[i]);
int interlaced = frame->interlaced_frame;
int tff = frame->top_field_first;
int interlaced = frame ? frame->interlaced_frame : 0;
int tff = frame ? frame->top_field_first : 0;
if (!frame) {
av_frame_free(&inpicref);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment