|
@@ -300,6 +300,10 @@ static int rscc_decode_frame(AVCodecContext *avctx, void *data, |
|
|
ret = AVERROR_INVALIDDATA; |
|
|
ret = AVERROR_INVALIDDATA; |
|
|
goto end; |
|
|
goto end; |
|
|
} |
|
|
} |
|
|
|
|
|
if (ctx->inflated_size < pixel_size) { |
|
|
|
|
|
ret = AVERROR_INVALIDDATA; |
|
|
|
|
|
goto end; |
|
|
|
|
|
} |
|
|
ret = uncompress(ctx->inflated_buf, &len, gbc->buffer, packed_size); |
|
|
ret = uncompress(ctx->inflated_buf, &len, gbc->buffer, packed_size); |
|
|
if (ret) { |
|
|
if (ret) { |
|
|
av_log(avctx, AV_LOG_ERROR, "Pixel deflate error %d.\n", ret); |
|
|
av_log(avctx, AV_LOG_ERROR, "Pixel deflate error %d.\n", ret); |
|
|