demux_mkv: work around bad OutputSamplingFrequency values
commit1bfd2c5614e9dcf90f1afe2d67ca387456118b5a
authorUoti Urpala <uau@mplayer2.org>
Sun, 16 Dec 2012 09:02:42 +0000 (16 11:02 +0200)
committerUoti Urpala <uau@mplayer2.org>
Sun, 16 Dec 2012 09:02:42 +0000 (16 11:02 +0200)
tree86a5a027003cef0fd1e095f2d5b50464ba8cf8d8
parentb5d2392f80d1c09f6c59c8510693deddca48c6df
demux_mkv: work around bad OutputSamplingFrequency values

Something produces corrupt Matroska files with audio tracks that have
SamplingFrequency set to 44100 and OutputSamplingFrequency to 96000,
when the correct playback rate is 44100. Add a special case for this
44100/96000 combination and override it to 44100/44100; it's unlikely
that anyone would ever want to use this 44100/96000 combination for
real in valid files.
libmpdemux/demux_mkv.c