aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMartin Vignali <martin.vignali@gmail.com>2018-11-08 22:04:35 +0100
committerMartin Vignali <martin.vignali@gmail.com>2018-11-08 22:21:04 +0100
commit105891cd580b892d6025bf4eafb37c69f816f483 (patch)
treeae88f2568f6f6beeefaeb391ae2868def6e378cd /libavcodec
parent8d1cf2d89481ca986af893425188d065c0f8f857 (diff)
downloadffmpeg-105891cd580b892d6025bf4eafb37c69f816f483.tar.gz
avcodec/prores_aw : change src pix_fmt and alpha description
use b64a as src pix fmt (doesn't seems to have an impact on decoding) but it's the value use by official encoder
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/proresenc_anatoliy.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c
index f35f049a78..4117fc2845 100644
--- a/libavcodec/proresenc_anatoliy.c
+++ b/libavcodec/proresenc_anatoliy.c
@@ -554,7 +554,15 @@ static int prores_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
*buf++ = pict->color_primaries;
*buf++ = pict->color_trc;
*buf++ = pict->colorspace;
+ if (avctx->profile >= FF_PROFILE_PRORES_4444) {
+ if (avctx->pix_fmt == AV_PIX_FMT_YUV444P10) {
+ *buf++ = 0xA0;/* src b64a and no alpha */
+ } else {
+ *buf++ = 0xA2;/* src b64a and 16b alpha */
+ }
+ } else {
*buf++ = 32;
+ }
*buf++ = 0;
*buf++ = 3;