diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-10-23 11:39:43 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-10-23 11:39:43 +0200 |
commit | b36257921e5282c3069e1b5c6e7e758e566c7337 (patch) | |
tree | 3bdbba14819b8fdc3f757cdf03695e316cf16f10 /ffmpeg.c | |
parent | 435a730e2190c9b005117eaad57f7559cd82581c (diff) | |
download | ffmpeg-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |