summaryrefslogtreecommitdiff
path: root/cmdutils.c
diff options
context:
space:
mode:
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2015-08-08 10:41:31 +0200
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2015-08-08 21:59:02 +0200
commit9126ae4b6ba366f8e948a294b1955bcaf858eb16 (patch)
treef4c735382d68dbbcf4ac86a156d3e1c9599d775c /cmdutils.c
parent8bd74aafe85c426c8d9ac0aefa7ae860cf3be735 (diff)
downloadffmpeg-9126ae4b6ba366f8e948a294b1955bcaf858eb16.tar.gz
use avfilter_pad_get_{type,name} accessor functions
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Diffstat (limited to 'cmdutils.c')
-rw-r--r--cmdutils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmdutils.c b/cmdutils.c
index 5aa56f15d0..78b0094dc0 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -1573,10 +1573,10 @@ int show_filters(void *optctx, const char *opt, const char *arg)
*(descr_cur++) = '>';
}
pad = i ? filter->outputs : filter->inputs;
- for (j = 0; pad && pad[j].name; j++) {
+ for (j = 0; pad && avfilter_pad_get_name(pad, j); j++) {
if (descr_cur >= descr + sizeof(descr) - 4)
break;
- *(descr_cur++) = get_media_type_char(pad[j].type);
+ *(descr_cur++) = get_media_type_char(avfilter_pad_get_type(pad, j));
}
if (!j)
*(descr_cur++) = ((!i && (filter->flags & AVFILTER_FLAG_DYNAMIC_INPUTS)) ||