Expose metadata found in onCuePoint events in .flv files.
authorAndrew Stone <andrew@clovar.com>
Mon, 11 Aug 2014 17:35:09 +0000 (13:35 -0400)
committerAnton Khirnov <anton@khirnov.net>
Wed, 13 Aug 2014 16:11:43 +0000 (16:11 +0000)
commit93c04e095dc37ebdab22174e88cfa91e24940866
treeb1f7b5959ea21a8fff4b3d3ab9eb9dc7bf42c8b9
parent019d3fccc4dcf5c8379112f697ce9eb08edee9b9
Expose metadata found in onCuePoint events in .flv files.

Currently, only onMetaData is used, but some providers (wrongly)
put metadata into onCuePoint events, and it's still nice to be
able to use that data.

onCuePoint events also present metadata slightly differently than
onMetaData events: all metadata is found inside an object called
"parameters". In order to extract this metadata, it's easiest to
recurse through the object tree and pull out anything found in
child objects and put it in the top-level metadata.

Reference: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/2/help.html?content=00001404.html

Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavformat/flvdec.c