aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-08-25 19:14:17 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-08-25 19:33:44 +0200
commit7659ee350b2336a24910f4d6361ccaae5bb85ec5 (patch)
tree706757867a8f59dec0373967e405603eb5bb2d22 /libavfilter
parentf12174c8cef872030a156cbf252f4951c3a6357c (diff)
downloadffmpeg-7659ee350b2336a24910f4d6361ccaae5bb85ec5.tar.gz
avfilter/graphdump: fix use of deprecated symbols
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/graphdump.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libavfilter/graphdump.c b/libavfilter/graphdump.c
index 756f63dc49..1b5932115b 100644
--- a/libavfilter/graphdump.c
+++ b/libavfilter/graphdump.c
@@ -71,14 +71,14 @@ static void avfilter_graph_dump_to_buf(AVBPrint *buf, AVFilterGraph *graph)
unsigned lname = strlen(filter->name);
unsigned ltype = strlen(filter->filter->name);
- for (j = 0; j < filter->input_count; j++) {
+ for (j = 0; j < filter->nb_inputs; j++) {
AVFilterLink *l = filter->inputs[j];
unsigned ln = strlen(l->src->name) + 1 + strlen(l->srcpad->name);
max_src_name = FFMAX(max_src_name, ln);
max_in_name = FFMAX(max_in_name, strlen(l->dstpad->name));
max_in_fmt = FFMAX(max_in_fmt, print_link_prop(NULL, l));
}
- for (j = 0; j < filter->output_count; j++) {
+ for (j = 0; j < filter->nb_outputs; j++) {
AVFilterLink *l = filter->outputs[j];
unsigned ln = strlen(l->dst->name) + 1 + strlen(l->dstpad->name);
max_dst_name = FFMAX(max_dst_name, ln);
@@ -88,17 +88,17 @@ static void avfilter_graph_dump_to_buf(AVBPrint *buf, AVFilterGraph *graph)
in_indent = max_src_name + max_in_name + max_in_fmt;
in_indent += in_indent ? 4 : 0;
width = FFMAX(lname + 2, ltype + 4);
- height = FFMAX3(2, filter->input_count, filter->output_count);
+ height = FFMAX3(2, filter->nb_inputs, filter->nb_outputs);
av_bprint_chars(buf, ' ', in_indent);
av_bprintf(buf, "+");
av_bprint_chars(buf, '-', width);
av_bprintf(buf, "+\n");
for (j = 0; j < height; j++) {
- unsigned in_no = j - (height - filter->input_count ) / 2;
- unsigned out_no = j - (height - filter->output_count) / 2;
+ unsigned in_no = j - (height - filter->nb_inputs ) / 2;
+ unsigned out_no = j - (height - filter->nb_outputs) / 2;
/* Input link */
- if (in_no < filter->input_count) {
+ if (in_no < filter->nb_inputs) {
AVFilterLink *l = filter->inputs[in_no];
e = buf->len + max_src_name + 2;
av_bprintf(buf, "%s:%s", l->src->name, l->srcpad->name);
@@ -127,7 +127,7 @@ static void avfilter_graph_dump_to_buf(AVBPrint *buf, AVFilterGraph *graph)
av_bprintf(buf, "|");
/* Output link */
- if (out_no < filter->output_count) {
+ if (out_no < filter->nb_outputs) {
AVFilterLink *l = filter->outputs[out_no];
unsigned ln = strlen(l->dst->name) + 1 +
strlen(l->dstpad->name);