diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-08-14 03:17:02 +0400 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-08-14 03:56:28 +0400 |
commit | a9d1878abe81ae8085d12590c5d089a49a0714e7 (patch) | |
tree | b8c4c39853d5dd6fae8572156ae549baa0c47eea /libavdevice | |
parent | 658a8bb98867457c47070a571f451622e1a1f3c7 (diff) |
lavdev/lavfi: correctly set the inout pad index when linking a filter to the output sink
In lavfi_read_header(), use the pad index designated in the inout for
linking an output to a sink, rather than always 0. Fix link creation
for filters with more than one output (e.g. the split filter).
Diffstat (limited to 'libavdevice')
-rw-r--r-- | libavdevice/lavfi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/lavfi.c b/libavdevice/lavfi.c index d525bfb6f5..aca102f7d6 100644 --- a/libavdevice/lavfi.c +++ b/libavdevice/lavfi.c @@ -178,7 +178,7 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx, pix_fmts, lavfi->graph)) < 0) FAIL(ret); lavfi->sinks[i] = sink; - if ((ret = avfilter_link(inout->filter_ctx, 0, sink, 0)) < 0) + if ((ret = avfilter_link(inout->filter_ctx, inout->pad_idx, sink, 0)) < 0) FAIL(ret); } |