height = bytestream_get_le16(&buf);
break;
default:
- av_log(avctx, AV_LOG_ERROR, "unsupported BMP file, patch welcome\n");
+ avpriv_report_missing_feature(avctx, "Information header size %u",
+ ihsize);
return AVERROR_PATCHWELCOME;
}
p->linesize[0] = -p->linesize[0];
}
bytestream2_init(&gb, buf, dsize);
- ff_msrle_decode(avctx, (AVPicture*)p, depth, &gb);
+ ff_msrle_decode(avctx, p, depth, &gb);
if (height < 0) {
p->data[0] += p->linesize[0] * (avctx->height - 1);
p->linesize[0] = -p->linesize[0];