Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonne Ahner <jonne.ahner@gmail.com>2011-09-22 04:40:49 +0400
committerMichael Niedermayer <michaelni@gmx.at>2011-09-22 08:26:52 +0400
commit8a73246391480bfc79ccca8fa34268b9274e4378 (patch)
treebdc4c501a2ef8c36362e96bbf5d98b1b6720d7b4 /libavcodec/proresdec.c
parent3a87dce6bf1b5677c06239a034031ff69f718d5e (diff)
prores: skip alpha if present
Diffstat (limited to 'libavcodec/proresdec.c')
-rw-r--r--libavcodec/proresdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/proresdec.c b/libavcodec/proresdec.c
index 00eb38d1c6..fc7a55bfc8 100644
--- a/libavcodec/proresdec.c
+++ b/libavcodec/proresdec.c
@@ -480,6 +480,7 @@ static int decode_slice_thread(AVCodecContext *avctx, void *arg, int jobnr, int
y_data_size = AV_RB16(buf + 2);
u_data_size = AV_RB16(buf + 4);
v_data_size = slice->data_size - y_data_size - u_data_size - hdr_size;
+ if (hdr_size > 7) v_data_size = AV_RB16(buf + 6);
if (y_data_size < 0 || u_data_size < 0 || v_data_size < 0) {
av_log(avctx, AV_LOG_ERROR, "invalid plane data size\n");