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

@ -477,14 +477,11 @@ _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. */
g_assert (!frame->output_buffer);
ret = GST_FLOW_OK;
}
}
return ret;