Commit 5d2daebf authored by Anton Khirnov's avatar Anton Khirnov

qsvenc: mark the encoders as INIT_CLEANUP

Should fix some leaks on init failure.
parent 83847cc8
......@@ -118,4 +118,5 @@ AVCodec ff_h264_qsv_encoder = {
AV_PIX_FMT_NONE },
.priv_class = &class,
.defaults = qsv_enc_defaults,
.caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
};
......@@ -269,4 +269,5 @@ AVCodec ff_hevc_qsv_encoder = {
AV_PIX_FMT_NONE },
.priv_class = &class,
.defaults = qsv_enc_defaults,
.caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
};
......@@ -114,4 +114,5 @@ AVCodec ff_mpeg2_qsv_encoder = {
AV_PIX_FMT_NONE },
.priv_class = &class,
.defaults = qsv_enc_defaults,
.caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment