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/6751>
This commit is contained in:
He Junyan 2024-04-19 00:30:47 +08:00 committed by Backport Bot
parent c63bcb1c2a
commit 17ede2149b

View file

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