|
|
@@ -519,7 +519,7 @@ void ff_put_bmp_header(AVIOContext *pb, AVCodecContext *enc, const AVCodecTag *t |
|
|
|
avio_wl16(pb, enc->bits_per_coded_sample ? enc->bits_per_coded_sample : 24); /* depth */ |
|
|
|
/* compression type */ |
|
|
|
avio_wl32(pb, enc->codec_tag); |
|
|
|
avio_wl32(pb, enc->width * enc->height * 3); |
|
|
|
avio_wl32(pb, (enc->width * enc->height * (enc->bits_per_coded_sample ? enc->bits_per_coded_sample : 24)+7) / 8); |
|
|
|
avio_wl32(pb, 0); |
|
|
|
avio_wl32(pb, 0); |
|
|
|
avio_wl32(pb, 0); |
|
|
|