xbmc/xbmc — pull request #2599 by BtbN (2013-04-12 11:04:02+00:00)
Title: Partial fix for ffmpeg VAAPI

This only partialy fixes ffmpeg.
It still is very crashy with vaapi, even with this patch.
Specialy mpeg2 decoding always crashes.

Upstream commit is b066d90211072c7532e17c0c54d8475f10fc97ad

Without this patch, xbmc always crashes when using vaapi.