[SCM] libav/experimental: Make avfilter_insert_filter() propagate an error code in case the called avfilter_link() fails.
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 17:16:23 UTC 2013
The following commit has been merged in the experimental branch:
commit db9dfa3cc360bdee4d571cfea5f468b3f1426b05
Author: Stefano Sabatini <stefano.sabatini-lala at poste.it>
Date: Mon Sep 27 17:28:53 2010 +0000
Make avfilter_insert_filter() propagate an error code in case the
called avfilter_link() fails.
Originally committed as revision 25229 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 4c61bf4..9e1940b 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -124,6 +124,7 @@ int avfilter_link(AVFilterContext *src, unsigned srcpad,
int avfilter_insert_filter(AVFilterLink *link, AVFilterContext *filt,
unsigned in, unsigned out)
{
+ int ret;
unsigned dstpad_idx = link->dstpad - link->dst->input_pads;
av_log(link->dst, AV_LOG_INFO, "auto-inserting filter '%s' "
@@ -131,10 +132,10 @@ int avfilter_insert_filter(AVFilterLink *link, AVFilterContext *filt,
filt->name, link->src->name, link->dst->name);
link->dst->inputs[dstpad_idx] = NULL;
- if (avfilter_link(filt, out, link->dst, dstpad_idx)) {
+ if ((ret = avfilter_link(filt, out, link->dst, dstpad_idx)) < 0) {
/* failed to link output filter to new filter */
link->dst->inputs[dstpad_idx] = link;
- return -1;
+ return ret;
}
/* re-hookup the link to the new destination filter we inserted */
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list