Drop useless gst_adapter_peek() since the returned buffer was not used
and this could incur superfluous memcpy().
GstVaapiParserState * const ps = GST_VAAPI_PARSER_STATE(base_decoder);
GstVaapiDecoderStatus status;
GstMpegVideoPacketTypeCode type;
- const guchar *buf;
guint32 start_code;
guint size, buf_size, flags;
gint ofs, ofs2;
buf_size = ofs;
ps->input_offset2 = 0;
- buf = gst_adapter_peek(adapter, buf_size);
- if (!buf)
- return GST_VAAPI_DECODER_STATUS_ERROR_NO_DATA;
-
unit->size = buf_size;
type = start_code & 0xff;