[FFmpeg-cvslog] r24721 - trunk/tools/lavfi-showfiltfmts.c

mru subversion
Sat Aug 7 00:25:42 CEST 2010


Author: mru
Date: Sat Aug  7 00:25:42 2010
New Revision: 24721

Log:
showfiltfmts: set media type of links to that of corresponding pad

Modified:
   trunk/tools/lavfi-showfiltfmts.c

Modified: trunk/tools/lavfi-showfiltfmts.c
==============================================================================
--- trunk/tools/lavfi-showfiltfmts.c	Sat Aug  7 00:25:39 2010	(r24720)
+++ trunk/tools/lavfi-showfiltfmts.c	Sat Aug  7 00:25:42 2010	(r24721)
@@ -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;
     }
 



More information about the ffmpeg-cvslog mailing list