[FFmpeg-cvslog] prores: Set the bits_per_coded_sample for alpha pix_fmt
Luca Barbato
git at videolan.org
Thu Apr 23 22:15:07 CEST 2015
ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Wed Apr 22 20:50:10 2015 +0200| [0a51c7d42a519c63178a4f3e35b8967f21da3a6a] | committer: Luca Barbato
prores: Set the bits_per_coded_sample for alpha pix_fmt
Improve the compatibility with other software.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0a51c7d42a519c63178a4f3e35b8967f21da3a6a
---
libavcodec/proresenc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/proresenc.c b/libavcodec/proresenc.c
index f61aa60..3a5524a 100644
--- a/libavcodec/proresenc.c
+++ b/libavcodec/proresenc.c
@@ -1151,6 +1151,7 @@ static av_cold int encode_init(AVCodecContext *avctx)
av_log(avctx, AV_LOG_ERROR, "alpha bits should be 0, 8 or 16\n");
return AVERROR(EINVAL);
}
+ avctx->bits_per_coded_sample = 32;
} else {
ctx->alpha_bits = 0;
}
More information about the ffmpeg-cvslog
mailing list