You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
prores: skip alpha if present
This commit is contained in:
committed by
Michael Niedermayer
parent
3a87dce6bf
commit
8a73246391
@@ -480,6 +480,7 @@ static int decode_slice_thread(AVCodecContext *avctx, void *arg, int jobnr, int
|
|||||||
y_data_size = AV_RB16(buf + 2);
|
y_data_size = AV_RB16(buf + 2);
|
||||||
u_data_size = AV_RB16(buf + 4);
|
u_data_size = AV_RB16(buf + 4);
|
||||||
v_data_size = slice->data_size - y_data_size - u_data_size - hdr_size;
|
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) {
|
if (y_data_size < 0 || u_data_size < 0 || v_data_size < 0) {
|
||||||
av_log(avctx, AV_LOG_ERROR, "invalid plane data size\n");
|
av_log(avctx, AV_LOG_ERROR, "invalid plane data size\n");
|
||||||
|
Reference in New Issue
Block a user