mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 09:40:37 +00:00
mpeg2: drop useless gst_adapter_peek().
Drop useless gst_adapter_peek() since the returned buffer was not used and this could incur superfluous memcpy().
This commit is contained in:
parent
4a69e395cd
commit
0180ef635c
1 changed files with 0 additions and 5 deletions
|
@ -1308,7 +1308,6 @@ gst_vaapi_decoder_mpeg2_parse(GstVaapiDecoder *base_decoder,
|
||||||
GstVaapiParserState * const ps = GST_VAAPI_PARSER_STATE(base_decoder);
|
GstVaapiParserState * const ps = GST_VAAPI_PARSER_STATE(base_decoder);
|
||||||
GstVaapiDecoderStatus status;
|
GstVaapiDecoderStatus status;
|
||||||
GstMpegVideoPacketTypeCode type;
|
GstMpegVideoPacketTypeCode type;
|
||||||
const guchar *buf;
|
|
||||||
guint32 start_code;
|
guint32 start_code;
|
||||||
guint size, buf_size, flags;
|
guint size, buf_size, flags;
|
||||||
gint ofs, ofs2;
|
gint ofs, ofs2;
|
||||||
|
@ -1347,10 +1346,6 @@ gst_vaapi_decoder_mpeg2_parse(GstVaapiDecoder *base_decoder,
|
||||||
buf_size = ofs;
|
buf_size = ofs;
|
||||||
ps->input_offset2 = 0;
|
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;
|
unit->size = buf_size;
|
||||||
|
|
||||||
type = start_code & 0xff;
|
type = start_code & 0xff;
|
||||||
|
|
Loading…
Reference in a new issue