OSDN Git Service

vorbis: extract metadata from the middle of a stream
authorBen Boeckel <mathstuf@gmail.com>
Wed, 5 Feb 2014 17:10:56 +0000 (12:10 -0500)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 5 Feb 2014 21:37:07 +0000 (22:37 +0100)
commit5a633ec2dd453c67ff23819c28d98e6b09c47295
tree9df375b6b1a49c34f2389259fa10e5cbce4fd065
parent0dc66553adb8b7dc89bc1118da0b0661a7ed1c09
vorbis: extract metadata from the middle of a stream

If a special comment packet shows up in the middle of the stream, we
should extract it out into the vorbis stream metadata dictionary.

Also, if there is metadata in the packet on the way in, it might linger
since we only add data to the dictionary causing stale metadata to be
inserted into the stream. Instead, clear it to remove any doubt about
what is new and old.

Signed-off-by: Ben Boeckel <mathstuf@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/oggparsevorbis.c