Mercurial > libavcodec.hg
comparison zmbv.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 | e19113273403 |
children | 8a4984c5cacc |
comparison
equal
deleted
inserted
replaced
10396:2bb3882075b6 | 10397:d7ed9dcc78e3 |
---|---|
600 c->avctx = avctx; | 600 c->avctx = avctx; |
601 | 601 |
602 c->width = avctx->width; | 602 c->width = avctx->width; |
603 c->height = avctx->height; | 603 c->height = avctx->height; |
604 | 604 |
605 if (avcodec_check_dimensions(avctx, avctx->width, avctx->height) < 0) { | |
606 return 1; | |
607 } | |
608 c->bpp = avctx->bits_per_coded_sample; | 605 c->bpp = avctx->bits_per_coded_sample; |
609 | 606 |
610 // Needed if zlib unused or init aborted before inflateInit | 607 // Needed if zlib unused or init aborted before inflateInit |
611 memset(&(c->zstream), 0, sizeof(z_stream)); | 608 memset(&(c->zstream), 0, sizeof(z_stream)); |
612 | 609 |