comparison smacker.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 08b84fcd478c
children ccad7a2ff75f
comparison
equal deleted inserted replaced
10396:2bb3882075b6 10397:d7ed9dcc78e3
512 { 512 {
513 SmackVContext * const c = avctx->priv_data; 513 SmackVContext * const c = avctx->priv_data;
514 514
515 c->avctx = avctx; 515 c->avctx = avctx;
516 516
517 if (avcodec_check_dimensions(avctx, avctx->width, avctx->height) < 0) {
518 return 1;
519 }
520
521 avctx->pix_fmt = PIX_FMT_PAL8; 517 avctx->pix_fmt = PIX_FMT_PAL8;
522 518
523 519
524 /* decode huffman trees from extradata */ 520 /* decode huffman trees from extradata */
525 if(avctx->extradata_size < 16){ 521 if(avctx->extradata_size < 16){