mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
vsrc_buffer: fix NULL dereference
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
ff558d7b01
commit
ad0193bf9c
@ -58,7 +58,7 @@ int av_vsrc_buffer_add_frame2(AVFilterContext *buffer_filter, AVFrame *frame,
|
||||
AVFilterLink *link;
|
||||
|
||||
av_log(buffer_filter, AV_LOG_INFO, "Changing filter graph input to accept %dx%d %d (%d %d)\n",
|
||||
width,height,pix_fmt, c->pix_fmt, scale->outputs[0]->format);
|
||||
width,height,pix_fmt, c->pix_fmt, scale && scale->outputs ? scale->outputs[0]->format : -123);
|
||||
|
||||
if(!scale || strcmp(scale->filter->name,"scale")){
|
||||
AVFilter *f= avfilter_get_by_name("scale");
|
||||
|
Loading…
Reference in New Issue
Block a user