X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fulti.c;h=cf6891d530a9aa7d4f751c83dc89b8df8d3fc190;hb=e5bcda6473a2d6984216004506374669501fcf3b;hp=9e4c088b101c71d72deee2ef8628981fc58886cd;hpb=20608261f7818fc034f96034a089e755f095716e;p=ffmpeg diff --git a/libavcodec/ulti.c b/libavcodec/ulti.c index 9e4c088b101..cf6891d530a 100644 --- a/libavcodec/ulti.c +++ b/libavcodec/ulti.c @@ -62,7 +62,8 @@ static av_cold int ulti_decode_init(AVCodecContext *avctx) return 0; } -static av_cold int ulti_decode_end(AVCodecContext *avctx){ +static av_cold int ulti_decode_end(AVCodecContext *avctx) +{ UltimotionDecodeContext *s = avctx->priv_data; av_frame_free(&s->frame); @@ -229,7 +230,7 @@ static int ulti_decode_frame(AVCodecContext *avctx, int skip; int tmp; - if ((ret = ff_reget_buffer(avctx, s->frame)) < 0) + if ((ret = ff_reget_buffer(avctx, s->frame, 0)) < 0) return ret; bytestream2_init(&s->gb, buf, buf_size); @@ -427,4 +428,5 @@ AVCodec ff_ulti_decoder = { .close = ulti_decode_end, .decode = ulti_decode_frame, .capabilities = AV_CODEC_CAP_DR1, + .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, };