Commit 8d5088a1 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'bb428e00'

* commit 'bb428e00':
  hqx: Mark codec as init-thread-safe and init-cleanup
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents f2978aa7 bb428e00
......@@ -521,13 +521,10 @@ static av_cold int hqx_decode_close(AVCodecContext *avctx)
static av_cold int hqx_decode_init(AVCodecContext *avctx)
{
HQXContext *ctx = avctx->priv_data;
int ret = ff_hqx_init_vlcs(ctx);
if (ret < 0)
hqx_decode_close(avctx);
ff_hqxdsp_init(&ctx->hqxdsp);
return ret;
return ff_hqx_init_vlcs(ctx);
}
AVCodec ff_hqx_decoder = {
......@@ -540,4 +537,6 @@ AVCodec ff_hqx_decoder = {
.decode = hqx_decode_frame,
.close = hqx_decode_close,
.capabilities = CODEC_CAP_DR1 | CODEC_CAP_SLICE_THREADS,
.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