summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-10-23 11:39:43 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-10-23 11:39:43 +0200
commitb36257921e5282c3069e1b5c6e7e758e566c7337 (patch)
tree3bdbba14819b8fdc3f757cdf03695e316cf16f10 /ffmpeg.c
parent435a730e2190c9b005117eaad57f7559cd82581c (diff)
downloadffmpeg-b36257921e5282c3069e1b5c6e7e758e566c7337.tar.gz
ffmpeg: Dont crash on unconnected output pads before an error is printed
Found-by: durandal_1707 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
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;