media_modules: H265 seek operation crash [1/1]
authorPeng Yixin <yixin.peng@amlogic.com>
Tue, 3 Mar 2020 02:12:15 +0000 (10:12 +0800)
committerHui Zhang <hui.zhang@amlogic.com>
Fri, 13 Mar 2020 09:02:07 +0000 (01:02 -0800)
commit9e41e3ceae4e852a89905da6e7070a2087261f13
tree9a267a82f339e6138f85db7720d0792caaa99ac8
parent1e9dc7326a8cf1290030732b3a81c0c2cf7dfa7f
media_modules: H265 seek operation crash [1/1]

PD#SWPL-21997

Problem:
H265 video file seek operation crash.
1.Memory freed is still being used
2.The number of buffers calculated by the
decoder driver and v4l2 is inconsistent.

Solution:
1.Free memory correctly
2.The number of buffers calculated by the
decoder driver and v4l2 stay the same.

Verify:
AC214

Change-Id: Idaee66c8a4e0dbf63d493555e224b15c131dcb64
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
drivers/amvdec_ports/decoder/vdec_hevc_if.c
drivers/frame_provider/decoder/h265/vh265.c