Mercurial > libavcodec.hg
comparison vmnc.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 | eb2a897f89d5 |
children | 8a4984c5cacc |
comparison
equal
deleted
inserted
replaced
10396:2bb3882075b6 | 10397:d7ed9dcc78e3 |
---|---|
466 c->avctx = avctx; | 466 c->avctx = avctx; |
467 | 467 |
468 c->width = avctx->width; | 468 c->width = avctx->width; |
469 c->height = avctx->height; | 469 c->height = avctx->height; |
470 | 470 |
471 if (avcodec_check_dimensions(avctx, avctx->width, avctx->height) < 0) { | |
472 return 1; | |
473 } | |
474 c->bpp = avctx->bits_per_coded_sample; | 471 c->bpp = avctx->bits_per_coded_sample; |
475 c->bpp2 = c->bpp/8; | 472 c->bpp2 = c->bpp/8; |
476 | 473 |
477 switch(c->bpp){ | 474 switch(c->bpp){ |
478 case 8: | 475 case 8: |