diff --git a/subprojects/gst-plugins-bad/sys/va/gstvaav1enc.c b/subprojects/gst-plugins-bad/sys/va/gstvaav1enc.c index 9fce690481..fc72bf2b3a 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvaav1enc.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvaav1enc.c @@ -170,8 +170,6 @@ struct _GstVaAV1EncFrame gint frame_num; guint32 flags; guint pyramid_level; - /* The total frame count we handled. */ - guint total_frame_count; gboolean bidir_ref; gint8 ref_frame_idx[GST_AV1_NUM_REF_FRAMES]; /* The index in reference list to update */ @@ -510,7 +508,6 @@ gst_va_av1_enc_frame_new (void) frame->temporal_id = 0; frame->spatial_id = 0; frame->picture = NULL; - frame->total_frame_count = 0; frame->pyramid_level = 0; frame->flags = 0; frame->bidir_ref = FALSE; @@ -537,7 +534,6 @@ gst_va_av1_enc_new_frame (GstVaBaseEnc * base, GstVideoCodecFrame * frame) GstVaAV1EncFrame *frame_in; frame_in = gst_va_av1_enc_frame_new (); - frame_in->total_frame_count = base->input_frame_count++; gst_video_codec_frame_set_user_data (frame, frame_in, gst_va_av1_enc_frame_free); @@ -4054,7 +4050,6 @@ gst_va_av1_enc_prepare_output (GstVaBaseEnc * base, } *complete = TRUE; - base->output_frame_count++; GST_BUFFER_FLAG_SET (buf, GST_BUFFER_FLAG_MARKER); if (frame_enc->frame_num == 0) { diff --git a/subprojects/gst-plugins-bad/sys/va/gstvabaseenc.c b/subprojects/gst-plugins-bad/sys/va/gstvabaseenc.c index 54030415cc..d5eca0abf5 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvabaseenc.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvabaseenc.c @@ -125,9 +125,6 @@ gst_va_base_enc_start (GstVideoEncoder * venc) gst_va_base_enc_reset_state (base); - base->input_frame_count = 0; - base->output_frame_count = 0; - base->input_state = NULL; return TRUE; diff --git a/subprojects/gst-plugins-bad/sys/va/gstvabaseenc.h b/subprojects/gst-plugins-bad/sys/va/gstvabaseenc.h index 25e72ba707..e0164621b3 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvabaseenc.h +++ b/subprojects/gst-plugins-bad/sys/va/gstvabaseenc.h @@ -57,9 +57,6 @@ struct _GstVaBaseEnc GstClockTime start_pts; GstClockTime frame_duration; - /* Total frames we handled since reconfig. */ - guint input_frame_count; - guint output_frame_count; GQueue reorder_list; GQueue ref_list;