diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2016-10-25 13:44:08 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2016-10-25 13:44:08 +0200 |
commit | 134233972e7961d9a41c67d27da505e459d5edfa (patch) | |
tree | 47fbf8306751ed41a6f22aa7c1dc9ac3a76671b5 | |
parent | 85d23e5cbc9ad6835eef870a5b4247de78febe56 (diff) | |
download | ffmpeg-134233972e7961d9a41c67d27da505e459d5edfa.tar.gz |
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.
-rw-r--r-- | libavcodec/utvideoenc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/utvideoenc.c b/libavcodec/utvideoenc.c index 8ffc26336d..6082943764 100644 --- a/libavcodec/utvideoenc.c +++ b/libavcodec/utvideoenc.c @@ -77,6 +77,7 @@ static av_cold int utvideo_encode_init(AVCodecContext *avctx) c->planes = 4; avctx->codec_tag = MKTAG('U', 'L', 'R', 'A'); original_format = UTVIDEO_RGBA; + avctx->bits_per_coded_sample = 32; break; case AV_PIX_FMT_YUV420P: if (avctx->width & 1 || avctx->height & 1) { |