aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lavfi-showfiltfmts.c
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-08-06 22:25:42 +0000
committerMåns Rullgård <mans@mansr.com>2010-08-06 22:25:42 +0000
commitc61f84bf97ff70433e5b42a76909c356d3200a21 (patch)
tree9b31c1ac73139cb1ee57e91e35128c2a84f9eb4a /tools/lavfi-showfiltfmts.c
parent5a6fbf4c39f1f24a21f53c0e9134e1b452341390 (diff)
downloadffmpeg-c61f84bf97ff70433e5b42a76909c356d3200a21.tar.gz
showfiltfmts: set media type of links to that of corresponding pad
Originally committed as revision 24721 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'tools/lavfi-showfiltfmts.c')
-rw-r--r--tools/lavfi-showfiltfmts.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/lavfi-showfiltfmts.c b/tools/lavfi-showfiltfmts.c
index af7a181089..da3dc7b732 100644
--- a/tools/lavfi-showfiltfmts.c
+++ b/tools/lavfi-showfiltfmts.c
@@ -60,11 +60,13 @@ int main(int argc, char **argv)
/* create a link for each of the input pads */
for (i = 0; i < filter_ctx->input_count; i++) {
- AVFilterLink *link = av_malloc(sizeof(AVFilterLink));
+ AVFilterLink *link = av_mallocz(sizeof(AVFilterLink));
+ link->type = filter_ctx->filter->inputs[i].type;
filter_ctx->inputs[i] = link;
}
for (i = 0; i < filter_ctx->output_count; i++) {
- AVFilterLink *link = av_malloc(sizeof(AVFilterLink));
+ AVFilterLink *link = av_mallocz(sizeof(AVFilterLink));
+ link->type = filter_ctx->filter->inputs[i].type;
filter_ctx->outputs[i] = link;
}