Commit d4921078 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/snowenc: Mark as FF_CODEC_CAP_INIT_THREADSAFE and FF_CODEC_CAP_INIT_CLEANUP

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ee8ce211
...@@ -60,7 +60,6 @@ static av_cold int encode_init(AVCodecContext *avctx) ...@@ -60,7 +60,6 @@ static av_cold int encode_init(AVCodecContext *avctx)
} }
if ((ret = ff_snow_common_init(avctx)) < 0) { if ((ret = ff_snow_common_init(avctx)) < 0) {
ff_snow_common_end(avctx->priv_data);
return ret; return ret;
} }
ff_mpegvideoencdsp_init(&s->mpvencdsp, avctx); ff_mpegvideoencdsp_init(&s->mpvencdsp, avctx);
...@@ -1903,6 +1902,8 @@ AVCodec ff_snow_encoder = { ...@@ -1903,6 +1902,8 @@ AVCodec ff_snow_encoder = {
AV_PIX_FMT_NONE AV_PIX_FMT_NONE
}, },
.priv_class = &snowenc_class, .priv_class = &snowenc_class,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE |
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