mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avcodec/snowenc: Mark as FF_CODEC_CAP_INIT_THREADSAFE and FF_CODEC_CAP_INIT_CLEANUP
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
ee8ce211ea
commit
d49210788b
@ -60,7 +60,6 @@ static av_cold int encode_init(AVCodecContext *avctx)
|
||||
}
|
||||
|
||||
if ((ret = ff_snow_common_init(avctx)) < 0) {
|
||||
ff_snow_common_end(avctx->priv_data);
|
||||
return ret;
|
||||
}
|
||||
ff_mpegvideoencdsp_init(&s->mpvencdsp, avctx);
|
||||
@ -1903,6 +1902,8 @@ AVCodec ff_snow_encoder = {
|
||||
AV_PIX_FMT_NONE
|
||||
},
|
||||
.priv_class = &snowenc_class,
|
||||
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE |
|
||||
FF_CODEC_CAP_INIT_CLEANUP,
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user