X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fulti.c;h=55548ae3f63d2e6f38a6ec5d731dfe6035ec76a9;hb=1c7f252783aec37e4ff8049476386f63afe91756;hp=9318af064bda129ef52ee1af613737c1c694e4cc;hpb=a024c3ce9a502849013a4aa2c0a6de0c9270261c;p=ffmpeg diff --git a/libavcodec/ulti.c b/libavcodec/ulti.c index 9318af064bd..55548ae3f63 100644 --- a/libavcodec/ulti.c +++ b/libavcodec/ulti.c @@ -230,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); @@ -418,7 +418,7 @@ err: return AVERROR_INVALIDDATA; } -AVCodec ff_ulti_decoder = { +const AVCodec ff_ulti_decoder = { .name = "ultimotion", .long_name = NULL_IF_CONFIG_SMALL("IBM UltiMotion"), .type = AVMEDIA_TYPE_VIDEO, @@ -428,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, };