OSDN Git Service

genX_mfd: fix dmv buffer size calculation
authorcarpalis <jerome.borsboom@carpalis.nl>
Tue, 31 Oct 2017 14:22:14 +0000 (15:22 +0100)
committerXiang, Haihao <haihao.xiang@intel.com>
Fri, 5 Jan 2018 06:57:31 +0000 (14:57 +0800)
commit60fa59c0982c55400562d9a9a55c1a8bc5f644c7
treed27ee070985cfe1fc8d7d2a9335202409c618071
parent7ff0e522cbed516974942c73879343811dc7ae0d
genX_mfd: fix dmv buffer size calculation

The picture size may vary within a VC-1 stream. We should calculate
the dmv buffer size from the size of the surface instead of the
size of the first picture that uses the surface. Subsequent pictures
may be larger, which could overflow the dmv buffer.

Signed-off-by: Jerome Borsboom <jerome.borsboom@carpalis.nl>
src/gen6_mfd.c
src/gen75_mfd.c
src/gen7_mfd.c
src/gen8_mfd.c