mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-01 03:52:25 +00:00
vah26{4,5}enc: No need to assert i>=0 in frame_setup_from_gop()
The value is an uint here and never be negative. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6868>
This commit is contained in:
parent
0233a2a7cf
commit
a3a3264f02
2 changed files with 2 additions and 2 deletions
|
@ -1723,7 +1723,7 @@ gst_va_h264_enc_reconfig (GstVaBaseEnc * base)
|
|||
static void
|
||||
frame_setup_from_gop (GstVaH264Enc * self, GstVaH264EncFrame * frame, guint i)
|
||||
{
|
||||
g_assert (i >= 0 && i < 1024);
|
||||
g_assert (i < 1024);
|
||||
|
||||
frame->type = self->gop.frame_types[i].slice_type;
|
||||
frame->is_ref = self->gop.frame_types[i].is_ref;
|
||||
|
|
|
@ -2024,7 +2024,7 @@ _h265_encode_one_frame (GstVaH265Enc * self, GstVideoCodecFrame * gst_frame)
|
|||
static void
|
||||
frame_setup_from_gop (GstVaH265Enc * self, GstVaH265EncFrame * frame, guint i)
|
||||
{
|
||||
g_assert (i >= 0 && i < 1024);
|
||||
g_assert (i < 1024);
|
||||
|
||||
frame->type = self->gop.frame_types[i].slice_type;
|
||||
frame->is_ref = self->gop.frame_types[i].is_ref;
|
||||
|
|
Loading…
Reference in a new issue