From b36257921e5282c3069e1b5c6e7e758e566c7337 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 23 Oct 2013 11:39:43 +0200 Subject: [PATCH] ffmpeg: Dont crash on unconnected output pads before an error is printed Found-by: durandal_1707 Signed-off-by: Michael Niedermayer --- ffmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffmpeg.c b/ffmpeg.c index 86b7162241..31482679f8 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -2108,7 +2108,7 @@ static int transcode_init(void) FilterGraph *fg = filtergraphs[i]; for (j = 0; j < fg->nb_outputs; j++) { OutputFilter *ofilter = fg->outputs[j]; - if (ofilter->ost->source_index >= 0) + if (!ofilter->ost || ofilter->ost->source_index >= 0) continue; if (fg->nb_inputs != 1) continue;