hevc: Fix scaling list prediction delta for the 32x32 inter matrix

Fixes ticket #6356.
This commit is contained in:
Mark Thompson 2017-04-30 13:21:03 +01:00
parent 5de38188f8
commit 88a2e4504d

View File

@ -725,6 +725,7 @@ static int scaling_list_data(GetBitContext *gb, AVCodecContext *avctx, ScalingLi
* which should already be in the arrays. */
if (delta) {
// Copy from previous array.
delta *= (size_id == 3) ? 3 : 1;
if (matrix_id < delta) {
av_log(avctx, AV_LOG_ERROR,
"Invalid delta in scaling list data: %d.\n", delta);