PD#SWPL-52807
Problem:
GIF pictures flicker after quickly switching pictures
Solution:
skip putting vframe if current buffer is being in used
Verify:
on t5
Change-Id: Id1366ead409967a6055d5de5413f16774407c778
Signed-off-by: Cao Jian <jian.cao@amlogic.com>
if (!vf)
return;
INCPTR(putting_ptr);
+ if (putting_ptr == fill_ptr) {
+ aml_pr_info(1, "buffer%d is being in use, skip\n", fill_ptr);
+ return;
+ }
for (i = 0; i < VF_POOL_SIZE; i++) {
canvas_addr = index2canvas(i);
if (vf->canvas0Addr == canvas_addr) {