demux_mkv: fix realvideo extradata handling
commitaa07b6d578847a1dcbb6b95f7837919fe430ee30
authorUoti Urpala <uau@glyph.nonexistent.invalid>
Wed, 26 May 2010 05:32:40 +0000 (26 08:32 +0300)
committerUoti Urpala <uau@glyph.nonexistent.invalid>
Wed, 26 May 2010 05:32:40 +0000 (26 08:32 +0300)
tree89ed33303881e26eef56d39cec3a98ffa44138ba
parent07e4261aa25b02826b7924b5595336ad78744d28
demux_mkv: fix realvideo extradata handling

The code handling larger-than-minimum realvideo extradata sizes was
complete nonsense. It tried to add the additional data to the exported
track extradata by reading data from the input stream, which was
completely bogus as this code is called long after the original
Matroska track extradata information has been read. As a result the
data read had nothing to do with correct values, and the read call
messed up the stream position which likely broke further parsing of
the file and caused complete playback failure. Change the code to
instead copy any additional part at the end of input extradata to the
end of output extradata. I believe this is the intended semantics,
though I haven't verified it from any specs.
libmpdemux/demux_mkv.c