mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-01 14:11:15 +00:00
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:
parent
c63bcb1c2a
commit
17ede2149b
1 changed files with 3 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue