Commit 5e380bcd authored by LuMingYin's avatar LuMingYin Committed by Zhao Zhili

avfilter/af_channelsplit: fix memory leak

Signed-off-by: 's avatarLuMingYin <lumingyindetect@163.com>
Signed-off-by: 's avatarZhao Zhili <zhilizhao@tencent.com>
parent db09f1a5
......@@ -163,8 +163,10 @@ static int filter_frame(AVFilterLink *outlink, AVFrame *buf)
buf_out->data[0] = buf_out->extended_data[0] = buf_out->extended_data[s->map[i]];
ret = av_channel_layout_from_mask(&buf_out->ch_layout, 1ULL << channel);
if (ret < 0)
if (ret < 0) {
av_frame_free(&buf_out);
return ret;
}
return ff_filter_frame(ctx->outputs[i], buf_out);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment