return id;
}
-int ff_get_bmp_header(AVIOContext *pb, AVStream *st, unsigned *esize)
+int ff_get_bmp_header(AVIOContext *pb, AVStream *st, uint32_t *size)
{
int tag1;
- if(esize) *esize = avio_rl32(pb);
- else avio_rl32(pb);
+ uint32_t size_ = avio_rl32(pb);
+ if (size)
+ *size = size_;
st->codecpar->width = avio_rl32(pb);
st->codecpar->height = (int32_t)avio_rl32(pb);
avio_rl16(pb); /* planes */