diff options
author | Jun Zhao <[email protected]> | 2017-12-04 12:50:34 +0800 |
---|---|---|
committer | Michael Niedermayer <[email protected]> | 2018-01-31 22:56:14 +0100 |
commit | 15df68bf5059da248e795e813bc3e40054b7ee22 (patch) | |
tree | 430e1cd054212c504f66662dc3124cc48f2ea418 | |
parent | f4cce67dca66c763997e7df02518aa439f2f4424 (diff) |
avfilter/formats: fix wrong function name in error message
Use perdefined micro __FUNCTION__ rather than hard coding function name
to fix wrong function name in error message.
Signed-off-by: Jun Zhao <[email protected]>
Signed-off-by: Michael Niedermayer <[email protected]>
(cherry picked from commit 4280948702bc256e21c375790b889c735d233b0d)
Signed-off-by: Michael Niedermayer <[email protected]>
-rw-r--r-- | libavfilter/formats.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/formats.c b/libavfilter/formats.c index 8758b3d113..7b65f44107 100644 --- a/libavfilter/formats.c +++ b/libavfilter/formats.c @@ -72,7 +72,7 @@ do { for (j = 0; j < b->nb; j++) \ if (a->fmts[i] == b->fmts[j]) { \ if(k >= FFMIN(a->nb, b->nb)){ \ - av_log(NULL, AV_LOG_ERROR, "Duplicate formats in avfilter_merge_formats() detected\n"); \ + av_log(NULL, AV_LOG_ERROR, "Duplicate formats in %s detected\n", __FUNCTION__); \ av_free(ret->fmts); \ av_free(ret); \ return NULL; \ |