mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
msdk: dec: inform msdk if the buffer contains a complete frame
For packetized input, inform the msdk that the buffer has a complete frame or complementary field pairs. For decoding, this means that the decoder can proceed with this buffer without waiting for the start of the next frame, which effectively reduces decoding latency. https://bugzilla.gnome.org/show_bug.cgi?id=795783
This commit is contained in:
parent
978bcf8aa6
commit
a372c05f06
1 changed files with 1 additions and 0 deletions
|
@ -651,6 +651,7 @@ gst_msdkdec_handle_frame (GstVideoDecoder * decoder, GstVideoCodecFrame * frame)
|
|||
bitstream.Data = map_info.data;
|
||||
bitstream.DataLength = map_info.size;
|
||||
bitstream.MaxLength = map_info.size;
|
||||
bitstream.DataFlag = MFX_BITSTREAM_COMPLETE_FRAME;
|
||||
} else {
|
||||
/* Non packetized streams: eg: vc1 advanced profile with per buffer bdu */
|
||||
gst_adapter_push (thiz->adapter, gst_buffer_ref (frame->input_buffer));
|
||||
|
|
Loading…
Reference in a new issue