mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +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/6688>
This commit is contained in:
parent
8d0a1a0c56
commit
ae5361b7fa
1 changed files with 3 additions and 6 deletions
|
@ -477,14 +477,11 @@ _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 {
|
|
||||||
if (frame->output_buffer) {
|
|
||||||
ret = gst_video_encoder_finish_subframe (GST_VIDEO_ENCODER (base), frame);
|
|
||||||
} else {
|
} else {
|
||||||
/* Allow to output later and no data here. */
|
/* Allow to output later and no data here. */
|
||||||
|
g_assert (!frame->output_buffer);
|
||||||
ret = GST_FLOW_OK;
|
ret = GST_FLOW_OK;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue