History

Merge commit '5b63b15663d31f50ce45d980b904a68795ad3f7a'

* commit '5b63b15663d31f50ce45d980b904a68795ad3f7a': lavfi: set the link hwframes context before configuring the dst input

Hendrik Leppkes committed 10 years ago

Commit adfcf162 parents 85146df 5b63b151 file · +8 −8Browse files

Unified · Split

libavfilter/avfilter.c+8−8
@@ -316,14 +316,6 @@ int avfilter_config_links(AVFilterContext *filter) · 315 unmodified lines
316316 link->time_base = (AVRational) {1, link->sample_rate};
317317 }
318318
319− if ((config_link = link->dstpad->config_props))
320− if ((ret = config_link(link)) < 0) {
321− av_log(link->dst, AV_LOG_ERROR,
322− "Failed to configure input pad on %s\n",
323− link->dst->name);
324− return ret;
325− }
326−
327319 if (link->src->nb_inputs && link->src->inputs[0]->hw_frames_ctx &&
328320 !link->hw_frames_ctx) {
329321 AVHWFramesContext *input_ctx = (AVHWFramesContext*)link->src->inputs[0]->hw_frames_ctx->data;
@@ -335,6 +327,14 @@ int avfilter_config_links(AVFilterContext *filter) · 5 unmodified lines
335327 }
336328 }
337329
330+ if ((config_link = link->dstpad->config_props))
331+ if ((ret = config_link(link)) < 0) {
332+ av_log(link->dst, AV_LOG_ERROR,
333+ "Failed to configure input pad on %s\n",
334+ link->dst->name);
335+ return ret;
336+ }
337+
338338 link->init_state = AVLINK_INIT;
339339 }
340340 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t