GNOME Bugzilla – Bug 648933
[mpegvideoparse] Avoid searching for picture start codes when not needed
Last modified: 2011-06-06 10:51:46 UTC
When parsing the picture header data, mpegvideoparse_handle_picture() scans for all picture start codes. This is not needed, it can stop scanning when it properly parses the first picture header. And mpegpacketizer will make sure one block will only contain one picture header. Makes mpegvideoparse two times faster on HD content.
Created attachment 186871 [details] [review] 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.
*** Bug 648932 has been marked as a duplicate of this bug. ***