comparison eatgv.c @ 12372:914f484bb476 libavcodec

Remove use of the deprecated function avcodec_check_dimensions(), use av_check_image_size() instead.
author stefano
date Fri, 06 Aug 2010 09:37:04 +0000
parents 7dd2a45249a9
children ffb3668ff7af
comparison
equal deleted inserted replaced
12371:5dffb531b1cc 12372:914f484bb476
30 30
31 #include "avcodec.h" 31 #include "avcodec.h"
32 #define ALT_BITSTREAM_READER_LE 32 #define ALT_BITSTREAM_READER_LE
33 #include "get_bits.h" 33 #include "get_bits.h"
34 #include "libavutil/lzo.h" 34 #include "libavutil/lzo.h"
35 #include "libavcore/imgutils.h"
35 36
36 #define EA_PREAMBLE_SIZE 8 37 #define EA_PREAMBLE_SIZE 8
37 #define kVGT_TAG MKTAG('k', 'V', 'G', 'T') 38 #define kVGT_TAG MKTAG('k', 'V', 'G', 'T')
38 39
39 typedef struct TgvContext { 40 typedef struct TgvContext {
273 s->palette[i] = AV_RB24(buf); 274 s->palette[i] = AV_RB24(buf);
274 buf += 3; 275 buf += 3;
275 } 276 }
276 } 277 }
277 278
278 if (avcodec_check_dimensions(avctx, s->width, s->height)) 279 if (av_check_image_size(s->width, s->height, 0, avctx))
279 return -1; 280 return -1;
280 281
281 /* shuffle */ 282 /* shuffle */
282 FFSWAP(AVFrame, s->frame, s->last_frame); 283 FFSWAP(AVFrame, s->frame, s->last_frame);
283 if (!s->frame.data[0]) { 284 if (!s->frame.data[0]) {