Issue detected by Coverity
There may be a null pointer dereference, or else the comparison
against null is unnecessary.
In gst_vaapi_encoder_h264_fei_encode: All paths that lead to this null
pointer comparison already dereference the pointer earlier
/* ERRORS */
error:
{
- if (reconstruct)
- gst_vaapi_encoder_release_surface (GST_VAAPI_ENCODER (encoder),
- reconstruct);
+ gst_vaapi_encoder_release_surface (GST_VAAPI_ENCODER (encoder),
+ reconstruct);
if (picture2)
gst_vaapi_enc_picture_unref (picture2);
return status;