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:
Edward Hervey 2011-04-29 13:33:43 +02:00
parent be60b7d0de
commit 813ac7bb2d

View file

@ -434,6 +434,7 @@ mpegvideoparse_handle_picture (MpegVideoParse * mpegvideoparse, GstBuffer * buf)
picture_type_name (hdr.pic_type)); picture_type_name (hdr.pic_type));
/* FIXME: Can use the picture type and number of fields to track a /* FIXME: Can use the picture type and number of fields to track a
* timestamp */ * timestamp */
break;
} }
cur = mpeg_util_find_start_code (&sync_word, cur, end); cur = mpeg_util_find_start_code (&sync_word, cur, end);
} }