The log message was logged for `filtergraphs[j]` which would cause a heap buffer overflow in certain circumstances. Correctly it should be logged for the current filtergraph, so just use `fg` here.
Unified · Split
| @@ -1409,7 +1409,7 @@ int fg_finalise_bindings(void) · 1408 unmodified lines | ||
| 1409 | 1409 | for (int j = 0; j < fg->nb_outputs; j++) { |
| 1410 | 1410 | OutputFilter *output = fg->outputs[j]; |
| 1411 | 1411 | if (!output->bound) { |
| 1412 | − av_log(filtergraphs[j], AV_LOG_FATAL, | |
| 1412 | + av_log(fg, AV_LOG_FATAL, | |
| 1413 | 1413 | "Filter %s has an unconnected output\n", output->name); |
| 1414 | 1414 | return AVERROR(EINVAL); |
| 1415 | 1415 | } |