git.videolan.org
/
ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lavfi: avfilter_merge_formats: handle case where inputs are same
[ffmpeg.git]
/
libavfilter
/
formats.c
diff --git
a/libavfilter/formats.c
b/libavfilter/formats.c
index
9d048d7
..
206eff5
100644
(file)
--- a/
libavfilter/formats.c
+++ b/
libavfilter/formats.c
@@
-45,6
+45,9
@@
AVFilterFormats *avfilter_merge_formats(AVFilterFormats *a, AVFilterFormats *b)
AVFilterFormats *ret;
unsigned i, j, k = 0, m_count;
+ if (a == b)
+ return a;
+
ret = av_mallocz(sizeof(*ret));
/* merge list of formats */