aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-04-26 18:15:52 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-04-26 18:15:52 +0200
commitad0193bf9cb258695a7f929954edd6e2e51de4d9 (patch)
tree69b088168b04cb2568f2d1c4324eff35396b7178
parentff558d7b0166dab5a84dc1c565c2beafa8590c86 (diff)
downloadffmpeg-ad0193bf9cb258695a7f929954edd6e2e51de4d9.tar.gz
vsrc_buffer: fix NULL dereference
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavfilter/vsrc_buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vsrc_buffer.c b/libavfilter/vsrc_buffer.c
index 54ee77788d..3e7fe9726f 100644
--- a/libavfilter/vsrc_buffer.c
+++ b/libavfilter/vsrc_buffer.c
@@ -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");