X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fproresdec2.c;h=b4ea6b5e0395e4cecb170aea35c4408bcf2a6d5f;hb=4a657acaefd599f3971e88419516a7f4ece00e53;hp=d97e264e4492b61e00abf23842bed9484641d003;hpb=b668a1c8b35d7b45eb32cba465fb99b99355998c;p=ffmpeg diff --git a/libavcodec/proresdec2.c b/libavcodec/proresdec2.c index d97e264e449..b4ea6b5e039 100644 --- a/libavcodec/proresdec2.c +++ b/libavcodec/proresdec2.c @@ -117,6 +117,11 @@ static int decode_frame_header(ProresContext *ctx, const uint8_t *buf, avctx->pix_fmt = (buf[12] & 0xC0) == 0xC0 ? AV_PIX_FMT_YUV444P10 : AV_PIX_FMT_YUV422P10; } + avctx->color_primaries = buf[14]; + avctx->color_trc = buf[15]; + avctx->colorspace = buf[16]; + avctx->color_range = AVCOL_RANGE_MPEG; + ptr = buf + 20; flags = buf[19]; ff_dlog(avctx, "flags %x\n", flags); @@ -703,7 +708,7 @@ static av_cold int decode_close(AVCodecContext *avctx) AVCodec ff_prores_decoder = { .name = "prores", - .long_name = NULL_IF_CONFIG_SMALL("ProRes"), + .long_name = NULL_IF_CONFIG_SMALL("ProRes (iCodec Pro)"), .type = AVMEDIA_TYPE_VIDEO, .id = AV_CODEC_ID_PRORES, .priv_data_size = sizeof(ProresContext),