mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
examples/filtering_audio: fix a memory leak.
This commit is contained in:
parent
2ae5af8094
commit
8f19483d06
@ -114,6 +114,7 @@ static int init_filters(const char *filters_descr)
|
|||||||
abuffersink_params->packing_fmts = packing_fmts;
|
abuffersink_params->packing_fmts = packing_fmts;
|
||||||
ret = avfilter_graph_create_filter(&buffersink_ctx, abuffersink, "out",
|
ret = avfilter_graph_create_filter(&buffersink_ctx, abuffersink, "out",
|
||||||
NULL, abuffersink_params, filter_graph);
|
NULL, abuffersink_params, filter_graph);
|
||||||
|
av_free(abuffersink_params);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
av_log(NULL, AV_LOG_ERROR, "Cannot create audio buffer sink\n");
|
av_log(NULL, AV_LOG_ERROR, "Cannot create audio buffer sink\n");
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user