GNOME Bugzilla – Bug 610447
[flvdemux] Be more flexible in script tag (metadata) parsing
Last modified: 2010-03-11 16:06:08 UTC
The following patch makes the Script Tag (metadata) parsing more flexible. (1) Doesn't limit the number of parsed tag items to the nb_elements variable, it's just an indication according to specs (and validated through testing some files). (2) Handle the list of Object type. It behaves the same way as the ECMA Array type, except that there isn't an indication of number of items.
Created attachment 154203 [details] [review] Make script tag parsing more flexible
commit 95d087ed77bf4d123d6309aea360ecafa55e4e8f Author: Edward Hervey <bilboed@bilboed.com> Date: Fri Feb 19 13:39:04 2010 +0100 flvparse: Make script tag parsing more flexible. * The nb_elements for arrays is just an indication, we can therefore ignore it and carry on parsing metadata items until we reach the end marker. * If type == 3, then the script tag contains a list of object followed by the end marker. Refactor code slightly to handle both cases https://bugzilla.gnome.org/show_bug.cgi?id=610447