qsvenc: mark the encoders as INIT_CLEANUP

Should fix some leaks on init failure.
pull/118/merge
Anton Khirnov 10 years ago
parent 83847cc8fa
commit 5d2daebf3c
  1. 1
      libavcodec/qsvenc_h264.c
  2. 1
      libavcodec/qsvenc_hevc.c
  3. 1
      libavcodec/qsvenc_mpeg2.c

@ -118,4 +118,5 @@ AVCodec ff_h264_qsv_encoder = {
AV_PIX_FMT_NONE }, AV_PIX_FMT_NONE },
.priv_class = &class, .priv_class = &class,
.defaults = qsv_enc_defaults, .defaults = qsv_enc_defaults,
.caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
}; };

@ -269,4 +269,5 @@ AVCodec ff_hevc_qsv_encoder = {
AV_PIX_FMT_NONE }, AV_PIX_FMT_NONE },
.priv_class = &class, .priv_class = &class,
.defaults = qsv_enc_defaults, .defaults = qsv_enc_defaults,
.caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
}; };

@ -114,4 +114,5 @@ AVCodec ff_mpeg2_qsv_encoder = {
AV_PIX_FMT_NONE }, AV_PIX_FMT_NONE },
.priv_class = &class, .priv_class = &class,
.defaults = qsv_enc_defaults, .defaults = qsv_enc_defaults,
.caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
}; };

Loading…
Cancel
Save