Mercurial > libavcodec.hg
comparison 8bps.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 | 266bf83f634d |
children | 8a4984c5cacc |
comparison
equal
deleted
inserted
replaced
10396:2bb3882075b6 | 10397:d7ed9dcc78e3 |
---|---|
156 EightBpsContext * const c = avctx->priv_data; | 156 EightBpsContext * const c = avctx->priv_data; |
157 | 157 |
158 c->avctx = avctx; | 158 c->avctx = avctx; |
159 | 159 |
160 c->pic.data[0] = NULL; | 160 c->pic.data[0] = NULL; |
161 | |
162 if (avcodec_check_dimensions(avctx, avctx->width, avctx->height) < 0) { | |
163 return 1; | |
164 } | |
165 | 161 |
166 switch (avctx->bits_per_coded_sample) { | 162 switch (avctx->bits_per_coded_sample) { |
167 case 8: | 163 case 8: |
168 avctx->pix_fmt = PIX_FMT_PAL8; | 164 avctx->pix_fmt = PIX_FMT_PAL8; |
169 c->planes = 1; | 165 c->planes = 1; |