summaryrefslogtreecommitdiff
authormiaohong chen <miaohong.chen@amlogic.com>2020-06-19 02:53:42 (GMT)
committer Shen Liu <shen.liu@amlogic.com>2020-06-28 13:23:40 (GMT)
commitb26fbec421f1e7435047e231b5e81b8c35169691 (patch)
tree9bb03c64dcd9f72ab1ecc86417071c61fe8ea906
parent4b1c9a849eaba9b8fdfe5d15a7a4b1ccab24f21a (diff)
downloadmedia_modules-b26fbec421f1e7435047e231b5e81b8c35169691.zip
media_modules-b26fbec421f1e7435047e231b5e81b8c35169691.tar.gz
media_modules-b26fbec421f1e7435047e231b5e81b8c35169691.tar.bz2
vmh264: fix the mosic when resolution changing [1/1]
PD#SWPL-28253 Problem: Mosaic appears from small resolution to large resolution. Solution: causes:After conversion, the small resolution frame buffers are not released, and are used by the large resolution code stream. Mark the small resolution frame buffer as ready to release. Verify: u212 Change-Id: Ic208167da54c05b7d962930c671f8e073fadd363 Signed-off-by: miaohong chen <miaohong.chen@amlogic.com>
Diffstat
-rw-r--r--drivers/frame_provider/decoder/h264_multi/vmh264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/frame_provider/decoder/h264_multi/vmh264.c b/drivers/frame_provider/decoder/h264_multi/vmh264.c
index 36c62e6..0633598 100644
--- a/drivers/frame_provider/decoder/h264_multi/vmh264.c
+++ b/drivers/frame_provider/decoder/h264_multi/vmh264.c
@@ -1622,7 +1622,7 @@ static void buf_spec_init(struct vdec_h264_hw_s *hw, bool buffer_reset_flag)
spin_lock_irqsave(&hw->bufspec_lock, flags);
if (buffer_reset_flag) {
for (i = 0; i < BUFSPEC_POOL_SIZE; i++) {
- if (hw->buffer_spec[i].used != -1)
+ if (hw->buffer_spec[i].used == 1 || hw->buffer_spec[i].used == 2)
hw->buffer_spec[i].used = 0;
}
} else {