forked from FFmpeg/FFmpeg
avfilter/af_join: pass the correct input layouts to ff_channel_layouts_ref
Should fix memory leaks show in fate-filter-join and fate-filter-crazychannels. Reviewed-by: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
a15d2fdfd9
commit
2e91532ead
1 changed files with 1 additions and 1 deletions
|
@ -215,7 +215,7 @@ static int join_query_formats(const AVFilterContext *ctx,
|
|||
|
||||
for (i = 0; i < ctx->nb_inputs; i++) {
|
||||
layouts = ff_all_channel_layouts();
|
||||
if ((ret = ff_channel_layouts_ref(layouts, &cfg_in[0]->channel_layouts)) < 0)
|
||||
if ((ret = ff_channel_layouts_ref(layouts, &cfg_in[i]->channel_layouts)) < 0)
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue