media_module: h264 green pixelation is seen during playback [1/1]
authorPeng Yixin <yixin.peng@amlogic.com>
Thu, 31 Oct 2019 05:47:20 +0000 (13:47 +0800)
committerZhi Zhou <zhi.zhou@amlogic.com>
Fri, 22 Nov 2019 02:43:26 +0000 (19:43 -0700)
commit15e6b2e2058ecc68b66d02a97d666d71b455a061
treeb85fc85b094632f7432070866e63a5a669259206
parentd8f7d20b6a12468999f6de7299d4f33deedf6861
media_module: h264 green pixelation is seen during playback [1/1]

PD#OTT-6820

Problem:
    Only when the resolution is switched from a stream with a lot of
    decoded buffers to another stream that needs a lot of decoded
    buffers,this problem occur when the canvas id used at the same
    time has exceeded the maximum value and cannot be allocated.

Solution:
    When switching the resolution, there is no need the canvas id
    of the previous resolution, so release it, the canvas id will
    not be insufficient to cause flower screen.

Verify:
    S922X

Change-Id: Ie9944f71d1bc85c8c90198573c9b209b74f5f828
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
drivers/frame_provider/decoder/h264_multi/vmh264.c