X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fyop.c;h=38014edef600f71447411630a2617c9ee03e6d14;hb=9e13df3776da3a101e895e2840f6f23f5a6f74a0;hp=32cfea200a1368ae9ab2763e608a202cbb4206d7;hpb=aebc5b2284db1f40a5b3e2e9a2bf406f606436c7;p=ffmpeg diff --git a/libavcodec/yop.c b/libavcodec/yop.c index 32cfea200a1..38014edef60 100644 --- a/libavcodec/yop.c +++ b/libavcodec/yop.c @@ -204,7 +204,7 @@ static int yop_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, return AVERROR_INVALIDDATA; } - if ((ret = ff_reget_buffer(avctx, frame)) < 0) + if ((ret = ff_reget_buffer(avctx, frame, 0)) < 0) return ret; if (!avctx->frame_number) @@ -265,7 +265,7 @@ static int yop_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, return avpkt->size; } -AVCodec ff_yop_decoder = { +const AVCodec ff_yop_decoder = { .name = "yop", .long_name = NULL_IF_CONFIG_SMALL("Psygnosis YOP Video"), .type = AVMEDIA_TYPE_VIDEO, @@ -274,4 +274,5 @@ AVCodec ff_yop_decoder = { .init = yop_decode_init, .close = yop_decode_close, .decode = yop_decode_frame, + .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, };