mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 03:29:50 +00:00
mpegvideoparse: Avoid double scanning of pictures
The incoming data has already been scanned in mpeg_packetizer_add_buf. We can therefore stop scanning for picture data as soon as we've parsed the header. Makes mpegvideoparse 2 times faster. https://bugzilla.gnome.org/show_bug.cgi?id=648933
This commit is contained in:
parent
be60b7d0de
commit
813ac7bb2d
1 changed files with 1 additions and 0 deletions
|
@ -434,6 +434,7 @@ mpegvideoparse_handle_picture (MpegVideoParse * mpegvideoparse, GstBuffer * buf)
|
|||
picture_type_name (hdr.pic_type));
|
||||
/* FIXME: Can use the picture type and number of fields to track a
|
||||
* timestamp */
|
||||
break;
|
||||
}
|
||||
cur = mpeg_util_find_start_code (&sync_word, cur, end);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue