mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avfilter/af_channelsplit: fix memory leak
Signed-off-by: LuMingYin <lumingyindetect@163.com> Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
This commit is contained in:
parent
db09f1a5d8
commit
5e380bcdb1
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user