Mercurial > libavcodec.hg
comparison dxa.c @ 10397:d7ed9dcc78e3 libavcodec
Remove unnecessary calls to avcodec_check_dimensions, the check is already
done at a higher level.
author | reimar |
---|---|
date | Tue, 13 Oct 2009 20:13:28 +0000 |
parents | a9011e7defee |
children | 8a4984c5cacc |
comparison
equal
deleted
inserted
replaced
10396:2bb3882075b6 | 10397:d7ed9dcc78e3 |
---|---|
293 DxaDecContext * const c = avctx->priv_data; | 293 DxaDecContext * const c = avctx->priv_data; |
294 | 294 |
295 c->avctx = avctx; | 295 c->avctx = avctx; |
296 avctx->pix_fmt = PIX_FMT_PAL8; | 296 avctx->pix_fmt = PIX_FMT_PAL8; |
297 | 297 |
298 if (avcodec_check_dimensions(avctx, avctx->width, avctx->height) < 0) { | |
299 return -1; | |
300 } | |
301 | |
302 c->dsize = avctx->width * avctx->height * 2; | 298 c->dsize = avctx->width * avctx->height * 2; |
303 if((c->decomp_buf = av_malloc(c->dsize)) == NULL) { | 299 if((c->decomp_buf = av_malloc(c->dsize)) == NULL) { |
304 av_log(avctx, AV_LOG_ERROR, "Can't allocate decompression buffer.\n"); | 300 av_log(avctx, AV_LOG_ERROR, "Can't allocate decompression buffer.\n"); |
305 return -1; | 301 return -1; |
306 } | 302 } |