X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fvble.c;h=f1400959e05cb68a4383b458796a27f65dd217b6;hb=a247ac640df3da573cd661065bf53f37863e2b46;hp=c25ee986972019867acbe0a4b3a497213f56b94a;hpb=26148e923613e718787c6fc4bf3f64e8909f597c;p=ffmpeg diff --git a/libavcodec/vble.c b/libavcodec/vble.c index c25ee986972..f1400959e05 100644 --- a/libavcodec/vble.c +++ b/libavcodec/vble.c @@ -197,14 +197,13 @@ static av_cold int vble_decode_init(AVCodecContext *avctx) if (!ctx->val) { av_log(avctx, AV_LOG_ERROR, "Could not allocate values buffer.\n"); - vble_decode_close(avctx); return AVERROR(ENOMEM); } return 0; } -AVCodec ff_vble_decoder = { +const AVCodec ff_vble_decoder = { .name = "vble", .long_name = NULL_IF_CONFIG_SMALL("VBLE Lossless Codec"), .type = AVMEDIA_TYPE_VIDEO, @@ -214,6 +213,5 @@ AVCodec ff_vble_decoder = { .close = vble_decode_close, .decode = vble_decode_frame, .capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS, - .init_thread_copy = ONLY_IF_THREADS_ENABLED(vble_decode_init), .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, };