flvparse: Make script tag parsing more flexible.
authorEdward Hervey <bilboed@bilboed.com>
Fri, 19 Feb 2010 12:39:04 +0000 (13:39 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Thu, 11 Mar 2010 16:04:41 +0000 (17:04 +0100)
commit95d087ed77bf4d123d6309aea360ecafa55e4e8f
treeabf7980c359d4a706f80494a308510261dbf0e24
parenta18164d56ef2b718a5746ce23ba054bfd0f4d508
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
gst/flv/gstflvparse.c