hevc: Fix scaling list prediction delta for the 32x32 inter matrix
authorMark Thompson <sw@jkqxz.net>
Sun, 30 Apr 2017 12:21:03 +0000 (13:21 +0100)
committerMark Thompson <sw@jkqxz.net>
Wed, 14 Jun 2017 22:08:26 +0000 (23:08 +0100)
Fixes ticket #6356.

libavcodec/hevc_ps.c

index 407190d..0fa50a1 100644 (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);