[FFmpeg-cvslog] lavdev/lavfi: correctly set the inout pad index when linking a filter to the output sink
Stefano Sabatini
git at videolan.org
Sun Aug 14 10:08:01 CEST 2011
ffmpeg | branch: master | Stefano Sabatini <stefano.sabatini-lala at poste.it> | Sun Aug 14 01:17:02 2011 +0200| [a9d1878abe81ae8085d12590c5d089a49a0714e7] | committer: Stefano Sabatini
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).
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a9d1878abe81ae8085d12590c5d089a49a0714e7
---
libavdevice/lavfi.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavdevice/lavfi.c b/libavdevice/lavfi.c
index d525bfb..aca102f 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);
}
More information about the ffmpeg-cvslog
mailing list