[FFmpeg-cvslog] vsrc_buffer: fix NULL dereference
Michael Niedermayer
git at videolan.org
Wed Apr 27 00:54:00 CEST 2011
ffmpeg | branch: oldabi | Michael Niedermayer <michaelni at gmx.at> | Tue Apr 26 18:15:52 2011 +0200| [ad0193bf9cb258695a7f929954edd6e2e51de4d9] | committer: Michael Niedermayer
vsrc_buffer: fix NULL dereference
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ad0193bf9cb258695a7f929954edd6e2e51de4d9
---
libavfilter/vsrc_buffer.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavfilter/vsrc_buffer.c b/libavfilter/vsrc_buffer.c
index 54ee777..3e7fe97 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");
More information about the ffmpeg-cvslog
mailing list