[FFmpeg-devel] [PATCH]lavc/utvideoenc: Set bits_per_coded_sample for rgba input.
Carl Eugen Hoyos
cehoyos at ag.or.at
Tue Oct 25 13:58:23 EEST 2016
Hi!
Attached patch may fix an issue reported on the gusari forum.
Please comment, Carl Eugen
-------------- next part --------------
From 20d2713bc1d4997a03bde52afd4192bbb48d3bb8 Mon Sep 17 00:00:00 2001
From: Carl Eugen Hoyos <cehoyos at ag.or.at>
Date: Tue, 25 Oct 2016 12:55:54 +0200
Subject: [PATCH] lavc/utvideoenc: Set bits_per_coded_sample for rgba input.
Allow to write correct biBitCount into the BITMAPINFOHEADER.
---
libavcodec/utvideoenc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/utvideoenc.c b/libavcodec/utvideoenc.c
index 8ffc263..6082943 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) {
--
1.7.10.4
More information about the ffmpeg-devel
mailing list