Mercurial > libavcodec.hg
comparison indeo3.c @ 12462:ffb3668ff7af libavcodec
Use new imgutils.h API names, fix deprecation warnings.
author | stefano |
---|---|
date | Tue, 07 Sep 2010 19:15:29 +0000 |
parents | 914f484bb476 |
children |
comparison
equal
deleted
inserted
replaced
12461:25174028da0a | 12462:ffb3668ff7af |
---|---|
994 cb_offset = *buf_pos++; | 994 cb_offset = *buf_pos++; |
995 buf_pos += 3; /* skip reserved byte and checksum */ | 995 buf_pos += 3; /* skip reserved byte and checksum */ |
996 image_height = bytestream_get_le16(&buf_pos); | 996 image_height = bytestream_get_le16(&buf_pos); |
997 image_width = bytestream_get_le16(&buf_pos); | 997 image_width = bytestream_get_le16(&buf_pos); |
998 | 998 |
999 if(av_check_image_size(image_width, image_height, 0, avctx)) | 999 if(av_image_check_size(image_width, image_height, 0, avctx)) |
1000 return -1; | 1000 return -1; |
1001 if (image_width != avctx->width || image_height != avctx->height) { | 1001 if (image_width != avctx->width || image_height != avctx->height) { |
1002 int ret; | 1002 int ret; |
1003 avcodec_set_dimensions(avctx, image_width, image_height); | 1003 avcodec_set_dimensions(avctx, image_width, image_height); |
1004 s->width = avctx->width; | 1004 s->width = avctx->width; |