diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2012-06-23 11:34:46 +0200 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2012-06-23 11:34:46 +0200 |
commit | bd9939f4951d9069d96b771e253f20534541aeb4 (patch) | |
tree | 9a838bacbc8685222ab6de5c66b1180ffa30e08e /libavfilter | |
parent | e9d5c0520ff5093b535b6fa48d6eba41a18c0838 (diff) | |
download | ffmpeg-bd9939f4951d9069d96b771e253f20534541aeb4.tar.gz |
lavfi: display pad type with mismatch error message.
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/avfilter.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index 5995cf6193..0954ce0217 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -126,8 +126,9 @@ int avfilter_link(AVFilterContext *src, unsigned srcpad, if (src->output_pads[srcpad].type != dst->input_pads[dstpad].type) { av_log(src, AV_LOG_ERROR, - "Media type mismatch between the '%s' filter output pad %d and the '%s' filter input pad %d\n", - src->name, srcpad, dst->name, dstpad); + "Media type mismatch between the '%s' filter output pad %d (%s) and the '%s' filter input pad %d (%s)\n", + src->name, srcpad, (char *)av_x_if_null(av_get_media_type_string(src->output_pads[srcpad].type), "?"), + dst->name, dstpad, (char *)av_x_if_null(av_get_media_type_string(dst-> input_pads[dstpad].type), "?")); return AVERROR(EINVAL); } |