Commit b3625792 authored by Michael Niedermayer's avatar Michael Niedermayer

ffmpeg: Dont crash on unconnected output pads before an error is printed

Found-by: durandal_1707
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 435a730e
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment