Mercurial > libavcodec.hg
comparison nuv.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 |
---|---|
110 width = (width + 1) & ~1; | 110 width = (width + 1) & ~1; |
111 height = (height + 1) & ~1; | 111 height = (height + 1) & ~1; |
112 if (quality >= 0) | 112 if (quality >= 0) |
113 get_quant_quality(c, quality); | 113 get_quant_quality(c, quality); |
114 if (width != c->width || height != c->height) { | 114 if (width != c->width || height != c->height) { |
115 if (av_check_image_size(height, width, 0, avctx) < 0) | 115 if (av_image_check_size(height, width, 0, avctx) < 0) |
116 return 0; | 116 return 0; |
117 avctx->width = c->width = width; | 117 avctx->width = c->width = width; |
118 avctx->height = c->height = height; | 118 avctx->height = c->height = height; |
119 c->decomp_size = c->height * c->width * 3 / 2; | 119 c->decomp_size = c->height * c->width * 3 / 2; |
120 c->decomp_buf = av_realloc(c->decomp_buf, c->decomp_size + AV_LZO_OUTPUT_PADDING); | 120 c->decomp_buf = av_realloc(c->decomp_buf, c->decomp_size + AV_LZO_OUTPUT_PADDING); |