vabaseenc: No need to call _finish_subframe()

After vaav1enc is aligned to TU, there is no case that generates
multi output for one input.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6688>
This commit is contained in:
He Junyan 2024-04-19 00:30:47 +08:00 committed by GStreamer Marge Bot
parent 8d0a1a0c56
commit ae5361b7fa

View file

@ -478,12 +478,9 @@ _push_buffer_to_downstream (GstVaBaseEnc * base, GstVideoCodecFrame * frame)
if (complete) { if (complete) {
ret = gst_video_encoder_finish_frame (GST_VIDEO_ENCODER (base), frame); ret = gst_video_encoder_finish_frame (GST_VIDEO_ENCODER (base), frame);
} else { } else {
if (frame->output_buffer) { /* Allow to output later and no data here. */
ret = gst_video_encoder_finish_subframe (GST_VIDEO_ENCODER (base), frame); g_assert (!frame->output_buffer);
} else { ret = GST_FLOW_OK;
/* Allow to output later and no data here. */
ret = GST_FLOW_OK;
}
} }
return ret; return ret;