gstreamer/gst-libs/gst
He Junyan 5168611f55 libs: surface: add pointer check for surface_new_from_formats.
The command line:
  gst-launch-1.0 filesrc location=some_name.mjpeg ! jpegparse !
  vaapijpegdec !  videoconvert ! video/x-raw,format=I420 ! vaapisink
will crash on i965 driver because of no pointer check.

We now generate the video format map between GST format and VA format
dynamically based on the image format returned by vaQueryImageFormats.
i965 driver does to report image format of 444P and Y800 forcc, while
the jpeg decoder context VASurfaceAttribPixelFormat use them. We can
not recognize these format and pass a NULL pointer to
gst_vaapi_surface_new_from_formats.
We need to add a pointer check here and let the fallback logic handle
this case correctly.
Other drivers work well.
2019-09-10 12:32:58 +00:00
..
vaapi libs: surface: add pointer check for surface_new_from_formats. 2019-09-10 12:32:58 +00:00
Makefile.am libs: remove gstbitwriter 2018-05-06 17:29:45 +02:00
meson.build libs: remove gstbitwriter 2018-05-06 17:29:45 +02:00