]> git.sesse.net Git - ffmpeg/commitdiff
lavc/x264: Also clean-up libx264rgb after init errors.
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>
Sun, 25 Aug 2019 14:09:40 +0000 (16:09 +0200)
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>
Sun, 25 Aug 2019 14:09:40 +0000 (16:09 +0200)
Missed in c180f0f6

libavcodec/libx264.c

index a99c1f31634a3bcadcfbf42cb6ac2c85607e6670..86e3530e797e19439754b190ed518a1b8ef147a4 100644 (file)
@@ -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