[x265] [PATCH] Bug fix in reading 32x32 custom scalinglists
vignesh at multicorewareinc.com
vignesh at multicorewareinc.com
Mon Sep 26 06:58:02 CEST 2016
# HG changeset patch
# User vignesh
# Date 1474352038 -19800
# Tue Sep 20 11:43:58 2016 +0530
# Node ID 0653bfac639d6daf80f4c64926a19bc6a2a8d11f
# Parent df559450949bd085b0fc5e01332aa8458af2fa43
Bug fix in reading 32x32 custom scalinglists
diff -r df559450949b -r 0653bfac639d source/common/scalinglist.cpp
--- a/source/common/scalinglist.cpp Wed Aug 10 13:26:18 2016 +0530
+++ b/source/common/scalinglist.cpp Tue Sep 20 11:43:58 2016 +0530
@@ -312,6 +312,22 @@
m_scalingListDC[sizeIdc][listIdc] = data;
}
}
+ if (sizeIdc == 3)
+ {
+ for (int listIdc = 1; listIdc < NUM_LISTS; listIdc++)
+ {
+ if (listIdc % 3 != 0)
+ {
+ src = m_scalingListCoef[sizeIdc][listIdc];
+ const int *srcNextSmallerSize = m_scalingListCoef[sizeIdc - 1][listIdc];
+ for (int i = 0; i < size; i++)
+ {
+ src[i] = srcNextSmallerSize[i];
+ }
+ m_scalingListDC[sizeIdc][listIdc] = m_scalingListDC[sizeIdc - 1][listIdc];
+ }
+ }
+ }
}
fclose(fp);
More information about the x265-devel
mailing list