mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-23 04:24:35 +02:00
ffmpeg: Dont crash on unconnected output pads before an error is printed
Found-by: durandal_1707 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
435a730e21
commit
b36257921e
2
ffmpeg.c
2
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user