dv: add compatibility to prevent panic [1/1]
authorYi Zhou <yi.zhou@amlogic.com>
Tue, 8 Jan 2019 01:24:45 +0000 (09:24 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Tue, 8 Jan 2019 12:11:09 +0000 (04:11 -0800)
commitec59423c2c9d409ad5f2b06b212e232c9c603375
tree525f6fee21280837e4769fb9b79c986afc1ed1d2
parent1564888a2f92e3e385f2861578a68dded9588f90
dv: add compatibility to prevent panic [1/1]

PD#SWPL-3889

Problem:
when the metadata parsed by decode is error, the array will overflow
in dv module.

Solution:
dolby type just appears once in metadata. After parsing dolby type,
breaking the circulation directly.

Verify:
U212

Change-Id: I715e28c1b9a8aab2fcb4059dd132b5b98c043f31
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
drivers/amlogic/media/enhancement/amdolby_vision/amdolby_vision.c