Mercurial > libavcodec.hg
comparison vb.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 | 0813b30e7db9 |
| children | c2ba520798a3 |
comparison
equal
deleted
inserted
replaced
| 10396:2bb3882075b6 | 10397:d7ed9dcc78e3 |
|---|---|
| 249 VBDecContext * const c = avctx->priv_data; | 249 VBDecContext * const c = avctx->priv_data; |
| 250 | 250 |
| 251 c->avctx = avctx; | 251 c->avctx = avctx; |
| 252 avctx->pix_fmt = PIX_FMT_PAL8; | 252 avctx->pix_fmt = PIX_FMT_PAL8; |
| 253 | 253 |
| 254 if (avcodec_check_dimensions(avctx, avctx->width, avctx->height) < 0) { | |
| 255 return -1; | |
| 256 } | |
| 257 | |
| 258 c->frame = av_malloc( avctx->width * avctx->height); | 254 c->frame = av_malloc( avctx->width * avctx->height); |
| 259 c->prev_frame = av_malloc( avctx->width * avctx->height); | 255 c->prev_frame = av_malloc( avctx->width * avctx->height); |
| 260 | 256 |
| 261 return 0; | 257 return 0; |
| 262 } | 258 } |
