[FFmpeg-cvslog] lavfi/color: free internal context options in uninit()
Stefano Sabatini
git at videolan.org
Mon Jul 30 00:38:25 CEST 2012
ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Sun Jul 29 17:11:35 2012 +0200| [9cf9214d0a0dcceeab31fc856ab614bcbe7ee027] | committer: Stefano Sabatini
lavfi/color: free internal context options in uninit()
Keeping the set options in the context when the component is still used
can be useful for debugging purposes.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9cf9214d0a0dcceeab31fc856ab614bcbe7ee027
---
libavfilter/vsrc_color.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/vsrc_color.c b/libavfilter/vsrc_color.c
index efbaee4..6612de5 100644
--- a/libavfilter/vsrc_color.c
+++ b/libavfilter/vsrc_color.c
@@ -89,13 +89,13 @@ static av_cold int color_init(AVFilterContext *ctx, const char *args)
color->time_base.den = frame_rate_q.num;
end:
- av_opt_free(color);
return ret;
}
static av_cold void color_uninit(AVFilterContext *ctx)
{
ColorContext *color = ctx->priv;
+ av_opt_free(color);
avfilter_unref_bufferp(&color->picref);
}
More information about the ffmpeg-cvslog
mailing list