Add more check of H264 slice param to avoid GPU hang caused by the incorrect parameter
authorZhao Yakui <yakui.zhao@intel.com>
Wed, 23 Jul 2014 05:46:17 +0000 (13:46 +0800)
committerZhao, Yakui <yakui.zhao@intel.com>
Wed, 23 Jul 2014 07:58:45 +0000 (15:58 +0800)
commit82d2ed8d7da3619c0ea467c06604f5626fc0b901
tree4f3529be9e729ba9fe0825913f608eacf825e530
parentc5cb17ea86f0065a939d3636dd26651c93d497c8
Add more check of H264 slice param to avoid GPU hang caused by the incorrect parameter

This is to fix the GPU hang in https://bugs.freedesktop.org/show_bug.cgi?id=76363

V1->V2: Use the new check based on Haihao's comment. Discard the current frame with the error
slice_param instead of smart fix. In such case it can prompt that the error slice_param
can be fixed by the upper-middle.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Tested-by: ValdikSS <iam@valdikss.org.ru>
Reviewed-by: Xiang Haihao <haihao.xiang@intel.com>
(cherry picked from commit 04202281135149a13a32dfb8a902debfac1331fe)
src/i965_decoder_utils.c