mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-11 09:59:50 +00:00
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
This commit is contained in:
parent
8d1cf2d894
commit
105891cd58
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user