mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-02-04 14:30:55 +08:00
Merge remote-tracking branch 'qatar/master'
* qatar/master: avfilter: Log an error if avfilter fails to configure a link. avconv: support only native pthreads. rtmp: Fix a possible access to invalid memory location when the playpath is too short. Conflicts: ffmpeg.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -231,8 +231,12 @@ int avfilter_config_links(AVFilterContext *filter)
|
||||
"callbacks on all outputs\n");
|
||||
return AVERROR(EINVAL);
|
||||
}
|
||||
} else if ((ret = config_link(link)) < 0)
|
||||
} else if ((ret = config_link(link)) < 0) {
|
||||
av_log(link->src, AV_LOG_ERROR,
|
||||
"Failed to configure output pad on %s\n",
|
||||
link->src->name);
|
||||
return ret;
|
||||
}
|
||||
|
||||
switch (link->type) {
|
||||
case AVMEDIA_TYPE_VIDEO:
|
||||
@@ -277,8 +281,12 @@ int avfilter_config_links(AVFilterContext *filter)
|
||||
}
|
||||
|
||||
if ((config_link = link->dstpad->config_props))
|
||||
if ((ret = config_link(link)) < 0)
|
||||
if ((ret = config_link(link)) < 0) {
|
||||
av_log(link->src, AV_LOG_ERROR,
|
||||
"Failed to configure input pad on %s\n",
|
||||
link->dst->name);
|
||||
return ret;
|
||||
}
|
||||
|
||||
link->init_state = AVLINK_INIT;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user