intel / intel-vaapi-driver

VA-API user mode driver for Intel GEN Graphics family
https://01.org/linuxmedia
Other
305 stars 126 forks source link

Avoid GPU crash with malformed streams #537

Closed MicheleL-Intel closed 2 years ago

MicheleL-Intel commented 2 years ago

When streams are malformed, we can get p-frames without any reference picture. However the code still assumes 1 reference picture at least, which leads to a GPU crash. To protect against GPU crashes, we force 0 when we have no pictures. Do this on gen6, 7, 7.5 and 8.

BUG=chromium:252389,chroimum:418024 TEST=go to youtube and play http://www.youtube.com/watch?v=6v2L2UGZJAM ; it doesn't crash

Signed-off-by: Stéphane Marchesin marcheu@chromium.org Signed-off-by: Sean V Kelley seanvk@posteo.de