mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
x265enc: remove dead code
level_ok is only used in a check that will never be true, removing it. CID #1315255
This commit is contained in:
parent
54b317ef78
commit
ca52600ccb
1 changed files with 0 additions and 4 deletions
|
@ -894,7 +894,6 @@ gst_x265_enc_set_format (GstVideoEncoder * video_enc,
|
|||
{
|
||||
GstX265Enc *encoder = GST_X265_ENC (video_enc);
|
||||
GstVideoInfo *info = &state->info;
|
||||
gboolean level_ok = TRUE;
|
||||
|
||||
/* If the encoder is initialized, do not reinitialize it again if not
|
||||
* necessary */
|
||||
|
@ -918,9 +917,6 @@ gst_x265_enc_set_format (GstVideoEncoder * video_enc,
|
|||
gst_video_codec_state_unref (encoder->input_state);
|
||||
encoder->input_state = gst_video_codec_state_ref (state);
|
||||
|
||||
if (!level_ok)
|
||||
return FALSE;
|
||||
|
||||
if (!gst_x265_enc_init_encoder (encoder))
|
||||
return FALSE;
|
||||
|
||||
|
|
Loading…
Reference in a new issue