dv: update el vf correctly [1/1]

PD#SWPL-12849

Problem:
Update meta and el function was called incorrectly. It
will cause the BL and EL mismatch.

Solution:
Correct the calling sequence to get correct EL frame

Verify:
Verified by AC211

Change-Id: I6c9f0221a9facd361fcd18dcda55cc3967593c1c
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
This commit is contained in:
Brian Zhu
2019-08-24 22:05:11 +08:00
committed by Tao Zeng
parent 008e13b1bf
commit 9cf8e6049c

View File

@@ -6007,6 +6007,7 @@ struct vframe_s *dolby_vision_toggle_frame(struct vframe_s *vf)
int height_bl, height_el;
int ret;
ret = dolby_vision_update_metadata(vf);
if (!is_dolby_vision_el_disable() || for_dolby_vision_certification())
cur_dispbuf2 = dolby_vision_vf_peek_el(vf);
if (cur_dispbuf2) {
@@ -6069,7 +6070,6 @@ struct vframe_s *dolby_vision_toggle_frame(struct vframe_s *vf)
return NULL;
};
ret = dolby_vision_update_metadata(vf);
if (ret == 0) {
/* setting generated for this frame */
/* or DOVI in bypass mode */