X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Favs.c;h=28f5f0b1379ce0724fe2026f2926144211b89649;hb=6ad61e30a16d338eab23b649365813fb150066ef;hp=66724d47b729cf3526bca606632f5b6e469cfc28;hpb=27e30c73d722ec13e59753dea91be00859c72bf2;p=ffmpeg diff --git a/libavcodec/avs.c b/libavcodec/avs.c index 66724d47b72..28f5f0b1379 100644 --- a/libavcodec/avs.c +++ b/libavcodec/avs.c @@ -59,7 +59,7 @@ avs_decode_frame(AVCodecContext * avctx, AvsBlockType type; GetBitContext change_map = {0}; //init to silence warning - if ((ret = ff_reget_buffer(avctx, p)) < 0) + if ((ret = ff_reget_buffer(avctx, p, 0)) < 0) return ret; p->pict_type = AV_PICTURE_TYPE_P; p->key_frame = 0; @@ -176,7 +176,7 @@ static av_cold int avs_decode_end(AVCodecContext *avctx) } -AVCodec ff_avs_decoder = { +const AVCodec ff_avs_decoder = { .name = "avs", .long_name = NULL_IF_CONFIG_SMALL("AVS (Audio Video Standard) video"), .type = AVMEDIA_TYPE_VIDEO,