libavcodec/snowdec: 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
75a730a22b
commit
ee8ce211ea
@ -401,7 +401,6 @@ static av_cold int decode_init(AVCodecContext *avctx)
|
|||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -644,4 +643,6 @@ AVCodec ff_snow_decoder = {
|
|||||||
.close = decode_end,
|
.close = decode_end,
|
||||||
.decode = decode_frame,
|
.decode = decode_frame,
|
||||||
.capabilities = CODEC_CAP_DR1 /*| CODEC_CAP_DRAW_HORIZ_BAND*/,
|
.capabilities = CODEC_CAP_DR1 /*| CODEC_CAP_DRAW_HORIZ_BAND*/,
|
||||||
|
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE |
|
||||||
|
FF_CODEC_CAP_INIT_CLEANUP,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user