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 a99c1f3..86e3530 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