mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
libs: encoder: h264fei: remove unnecessary check
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
This commit is contained in:
parent
47b0932911
commit
d69a4b8c05
1 changed files with 2 additions and 3 deletions
|
@ -2837,9 +2837,8 @@ gst_vaapi_encoder_h264_fei_encode (GstVaapiEncoder * base_encoder,
|
||||||
/* ERRORS */
|
/* ERRORS */
|
||||||
error:
|
error:
|
||||||
{
|
{
|
||||||
if (reconstruct)
|
gst_vaapi_encoder_release_surface (GST_VAAPI_ENCODER (encoder),
|
||||||
gst_vaapi_encoder_release_surface (GST_VAAPI_ENCODER (encoder),
|
reconstruct);
|
||||||
reconstruct);
|
|
||||||
if (picture2)
|
if (picture2)
|
||||||
gst_vaapi_enc_picture_unref (picture2);
|
gst_vaapi_enc_picture_unref (picture2);
|
||||||
return status;
|
return status;
|
||||||
|
|
Loading…
Reference in a new issue