172
182
avctx->pix_fmt = PIX_FMT_GRAY8;
175
186
if(hsize - ihsize - 14 > 0){
176
187
avctx->pix_fmt = PIX_FMT_PAL8;
189
av_log(avctx, AV_LOG_ERROR, "Unknown palette for %d-colour BMP\n", 1<<depth);
186
194
av_log(avctx, AV_LOG_ERROR, "depth %d not supported\n", depth);