+ if (ihsize == 40) {
+ width = bytestream_get_le32(&buf);
+ height = bytestream_get_le32(&buf);
+ } else if (ihsize == 12) {
+ width = bytestream_get_le16(&buf);
+ height = bytestream_get_le16(&buf);
+ } else {
+ av_log(avctx, AV_LOG_ERROR, "unsupported BMP file, patch welcome");
+ return -1;
+ }