dv: fix first frame garbage with dual dv [1/1]

PD#SWPL-19310

Problem:
When playing dual layer dv streaming, first frame
may display green. BL layer is out of sync with EL
layer.

Solution:
Fix the case which will toggle one more EL vframe incorrecly.

Verify:
Verified by AC214

Change-Id: I13b4a05716e800b8d25564a82d1d34d7198bf467
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
(cherry picked from commit d3b7a081f3b744a7a24a84bbf74865445651d4b4)
This commit is contained in:
Brian Zhu
2019-12-31 00:09:21 +08:00
committed by Chris KIM
parent 2f0ae64d27
commit 29de6b3a91

View File

@@ -7256,6 +7256,9 @@ int dolby_vision_process(
video_turn_off ? "off" : "on",
is_graphics_output_off() ? "off" : "on",
vf, toggle_mode);
/* do not toggle a new el vf */
if (toggle_mode == 1)
toggle_mode = 0;
if (vf &&
!dolby_vision_parse_metadata(
vf, toggle_mode, false, false)) {