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.
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