From 434588596fef6bd2cef17f8c9c2979a010153edd Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Sun, 25 Aug 2019 16:09:40 +0200 Subject: [PATCH] lavc/x264: Also clean-up libx264rgb after init errors. Missed in c180f0f6 --- libavcodec/libx264.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c index a99c1f3163..86e3530e79 100644 --- a/libavcodec/libx264.c +++ b/libavcodec/libx264.c @@ -1195,6 +1195,7 @@ AVCodec ff_libx264rgb_encoder = { .priv_class = &rgbclass, .defaults = x264_defaults, .pix_fmts = pix_fmts_8bit_rgb, + .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, .wrapper_name = "libx264", }; #endif