aboutsummaryrefslogtreecommitdiff
path: root/lib/ffmpeg/libavcodec/rv40.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ffmpeg/libavcodec/rv40.c')
-rw-r--r--lib/ffmpeg/libavcodec/rv40.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/ffmpeg/libavcodec/rv40.c b/lib/ffmpeg/libavcodec/rv40.c
index e4a46c1889..acebeb7da5 100644
--- a/lib/ffmpeg/libavcodec/rv40.c
+++ b/lib/ffmpeg/libavcodec/rv40.c
@@ -24,6 +24,8 @@
* RV40 decoder
*/
+#include "libavcore/imgutils.h"
+
#include "avcodec.h"
#include "dsputil.h"
#include "mpegvideo.h"
@@ -142,7 +144,7 @@ static int rv40_parse_slice_header(RV34DecContext *r, GetBitContext *gb, SliceIn
si->pts = get_bits(gb, 13);
if(!si->type || !get_bits1(gb))
rv40_parse_picture_size(gb, &w, &h);
- if(avcodec_check_dimensions(r->s.avctx, w, h) < 0)
+ if(av_image_check_size(w, h, 0, r->s.avctx) < 0)
return -1;
si->width = w;
si->height = h;
@@ -666,7 +668,7 @@ static av_cold int rv40_decode_init(AVCodecContext *avctx)
return 0;
}
-AVCodec rv40_decoder = {
+AVCodec ff_rv40_decoder = {
"rv40",
AVMEDIA_TYPE_VIDEO,
CODEC_ID_RV40,