mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-05-29 21:47:48 +02:00
Merge commit '5b63b15663d31f50ce45d980b904a68795ad3f7a'
* commit '5b63b15663d31f50ce45d980b904a68795ad3f7a': lavfi: set the link hwframes context before configuring the dst input Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
This commit is contained in:
commit
adfcf16f76
@ -316,14 +316,6 @@ int avfilter_config_links(AVFilterContext *filter)
|
|||||||
link->time_base = (AVRational) {1, link->sample_rate};
|
link->time_base = (AVRational) {1, link->sample_rate};
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((config_link = link->dstpad->config_props))
|
|
||||||
if ((ret = config_link(link)) < 0) {
|
|
||||||
av_log(link->dst, AV_LOG_ERROR,
|
|
||||||
"Failed to configure input pad on %s\n",
|
|
||||||
link->dst->name);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (link->src->nb_inputs && link->src->inputs[0]->hw_frames_ctx &&
|
if (link->src->nb_inputs && link->src->inputs[0]->hw_frames_ctx &&
|
||||||
!link->hw_frames_ctx) {
|
!link->hw_frames_ctx) {
|
||||||
AVHWFramesContext *input_ctx = (AVHWFramesContext*)link->src->inputs[0]->hw_frames_ctx->data;
|
AVHWFramesContext *input_ctx = (AVHWFramesContext*)link->src->inputs[0]->hw_frames_ctx->data;
|
||||||
@ -335,6 +327,14 @@ int avfilter_config_links(AVFilterContext *filter)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((config_link = link->dstpad->config_props))
|
||||||
|
if ((ret = config_link(link)) < 0) {
|
||||||
|
av_log(link->dst, AV_LOG_ERROR,
|
||||||
|
"Failed to configure input pad on %s\n",
|
||||||
|
link->dst->name);
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
link->init_state = AVLINK_INIT;
|
link->init_state = AVLINK_INIT;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user