diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c index 9af0e90105..2f6f2fd9be 100644 --- a/libavfilter/avfiltergraph.c +++ b/libavfilter/avfiltergraph.c @@ -379,7 +379,7 @@ static int can_merge_formats(AVFilterFormats *a_arg, int is_sample_rate) { AVFilterFormats *a, *b, *ret; - if (a == b) + if (a_arg == b_arg) return 1; a = clone_filter_formats(a_arg); b = clone_filter_formats(b_arg);