};
+static void
+tvh_codec_profile_libx265_destroy(TVHCodecProfile *_self)
+{
+ tvh_codec_profile_libx26x_t *self = (tvh_codec_profile_libx26x_t *)_self;
+ tvh_codec_profile_video_destroy(_self);
+ free(self->preset);
+ free(self->tune);
+ free(self->params);
+}
+
+
/* libx264 ================================================================== */
#if ENABLE_LIBX264
.size = sizeof(tvh_codec_profile_libx26x_t),
.idclass = &codec_profile_libx264_class,
.profiles = libx264_profiles,
+ .profile_destroy = tvh_codec_profile_libx265_destroy,
};
#endif
};
-static void
-tvh_codec_profile_libx265_destroy(TVHCodecProfile *_self)
-{
- tvh_codec_profile_libx26x_t *self = (tvh_codec_profile_libx26x_t *)_self;
- tvh_codec_profile_video_destroy(_self);
- free(self->preset);
- free(self->tune);
- free(self->params);
-}
-
-
TVHVideoCodec tvh_codec_libx265 = {
.name = "libx265",
.size = sizeof(tvh_codec_profile_libx26x_t),