mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
avfilter/graphparser: zero filter_ctx in case of deallocation in create_filter()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
ec8e68c763
commit
175e689cc5
1 changed files with 1 additions and 0 deletions
|
|
@ -133,6 +133,7 @@ static int create_filter(AVFilterContext **filt_ctx, AVFilterGraph *ctx, int ind
|
|||
av_log(log_ctx, AV_LOG_ERROR, " with args '%s'", args);
|
||||
av_log(log_ctx, AV_LOG_ERROR, "\n");
|
||||
avfilter_free(*filt_ctx);
|
||||
*filt_ctx = NULL;
|
||||
}
|
||||
|
||||
av_free(tmp_args);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue