You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
lavc/utvideoenc: Set bits_per_coded_sample for rgba.
Allows to write correct value for biBitCount into BITMAPINFOHEADER. Before, ff_put_bmp_header() always wrote "24" as biBitCount for utvideo because bits_per_coded_sample was never set by the encoder.
This commit is contained in:
@@ -77,6 +77,7 @@ static av_cold int utvideo_encode_init(AVCodecContext *avctx)
|
|||||||
c->planes = 4;
|
c->planes = 4;
|
||||||
avctx->codec_tag = MKTAG('U', 'L', 'R', 'A');
|
avctx->codec_tag = MKTAG('U', 'L', 'R', 'A');
|
||||||
original_format = UTVIDEO_RGBA;
|
original_format = UTVIDEO_RGBA;
|
||||||
|
avctx->bits_per_coded_sample = 32;
|
||||||
break;
|
break;
|
||||||
case AV_PIX_FMT_YUV420P:
|
case AV_PIX_FMT_YUV420P:
|
||||||
if (avctx->width & 1 || avctx->height & 1) {
|
if (avctx->width & 1 || avctx->height & 1) {
|
||||||
|
Reference in New Issue
Block a user