aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/proresdec.c
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2011-10-14 12:18:23 +0200
committerJanne Grunau <janne-libav@jannau.net>2011-10-14 21:07:53 +0200
commit19ec283f49003072bc3b3e52247c507fb1dc9dcc (patch)
treebd7675d6b34e8cc9f5d611d00edb6c7dea109b03 /libavcodec/proresdec.c
parent7ad06beb2cf31d8a96f475361425d6cc95e8f176 (diff)
downloadffmpeg-19ec283f49003072bc3b3e52247c507fb1dc9dcc.tar.gz
prores: add missing feature warning for alpha
Diffstat (limited to 'libavcodec/proresdec.c')
-rw-r--r--libavcodec/proresdec.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/proresdec.c b/libavcodec/proresdec.c
index 83c083fc9c..2e0cbf1f26 100644
--- a/libavcodec/proresdec.c
+++ b/libavcodec/proresdec.c
@@ -71,6 +71,7 @@ typedef struct {
int slice_height_factor;
int num_x_mbs;
int num_y_mbs;
+ int alpha_info;
} ProresContext;
@@ -189,6 +190,10 @@ static int decode_frame_header(ProresContext *ctx, const uint8_t *buf,
ctx->picture.top_field_first = ctx->frame_type & 1;
}
+ ctx->alpha_info = buf[17] & 0xf;
+ if (ctx->alpha_info)
+ av_log_missing_feature(avctx, "alpha channel", 0);
+
ctx->qmat_changed = 0;
ptr = buf + 20;
flags = buf[19];