comparison qdrw.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 54bc8a2727b0
children 136334ad62b3
comparison
equal deleted inserted replaced
10396:2bb3882075b6 10397:d7ed9dcc78e3
133 } 133 }
134 134
135 static av_cold int decode_init(AVCodecContext *avctx){ 135 static av_cold int decode_init(AVCodecContext *avctx){
136 // QdrawContext * const a = avctx->priv_data; 136 // QdrawContext * const a = avctx->priv_data;
137 137
138 if (avcodec_check_dimensions(avctx, avctx->width, avctx->height) < 0) {
139 return 1;
140 }
141
142 avctx->pix_fmt= PIX_FMT_PAL8; 138 avctx->pix_fmt= PIX_FMT_PAL8;
143 139
144 return 0; 140 return 0;
145 } 141 }
146 142