summaryrefslogtreecommitdiff
path: root/libavcodec/proresdec.c
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2012-02-28 19:44:07 +0100
committerKostya Shishkov <kostya.shishkov@gmail.com>2012-02-29 09:29:02 +0100
commit12b812d2e5dcc7c80b19b7c01713be31389120d5 (patch)
treeeab0f1be68dfa50cec62f4abd46cc8da72101ea4 /libavcodec/proresdec.c
parentc7084182e85eaa437899df58fd1ae57426d3c7f7 (diff)
prores: store and retrieve extended colourspace information
Based on the patch by Phil Barrett.
Diffstat (limited to 'libavcodec/proresdec.c')
-rw-r--r--libavcodec/proresdec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/proresdec.c b/libavcodec/proresdec.c
index da90912031..a399576179 100644
--- a/libavcodec/proresdec.c
+++ b/libavcodec/proresdec.c
@@ -165,6 +165,10 @@ static int decode_frame_header(ProresContext *ctx, const uint8_t *buf,
ctx->picture.top_field_first = ctx->frame_type & 1;
}
+ avctx->color_primaries = buf[14];
+ avctx->color_trc = buf[15];
+ avctx->colorspace = buf[16];
+
ctx->alpha_info = buf[17] & 0xf;
if (ctx->alpha_info)
av_log_missing_feature(avctx, "alpha channel", 0);