X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fnuv.c;h=26dcfd0d22bfc827cde2e60ce1def13bf18d7091;hb=e44c01563f03bf5cd0b6e59fd32f145db3861b33;hp=dfc26e4ebcd054eaa9fa920823ea956e16888773;hpb=19a9a49e84332d7f051edb83ee4bc3afc36d80ed;p=ffmpeg diff --git a/libavcodec/nuv.c b/libavcodec/nuv.c index dfc26e4ebcd..26dcfd0d22b 100644 --- a/libavcodec/nuv.c +++ b/libavcodec/nuv.c @@ -23,6 +23,7 @@ #include "libavutil/bswap.h" #include "libavutil/lzo.h" +#include "libavcore/imgutils.h" #include "avcodec.h" #include "dsputil.h" #include "rtjpeg.h" @@ -111,7 +112,7 @@ static int codec_reinit(AVCodecContext *avctx, int width, int height, int qualit if (quality >= 0) get_quant_quality(c, quality); if (width != c->width || height != c->height) { - if (avcodec_check_dimensions(avctx, height, width) < 0) + if (av_image_check_size(height, width, 0, avctx) < 0) return 0; avctx->width = c->width = width; avctx->height = c->height = height; @@ -274,7 +275,7 @@ static av_cold int decode_end(AVCodecContext *avctx) { AVCodec nuv_decoder = { "nuv", - CODEC_TYPE_VIDEO, + AVMEDIA_TYPE_VIDEO, CODEC_ID_NUV, sizeof(NuvContext), decode_init,