demux_lavf: add hack for stream-changing ogg input (internet radio)
commit393bb7bb989d8939e2ff38b5eb6da5a797809a03
authorUoti Urpala <uau@glyph.nonexistent.invalid>
Sat, 6 Nov 2010 01:39:49 +0000 (6 03:39 +0200)
committerUoti Urpala <uau@glyph.nonexistent.invalid>
Sat, 6 Nov 2010 21:29:00 +0000 (6 23:29 +0200)
tree3cf5b6a8c2a26f9ba4b204a65abafc6f2a6f5b3c
parent661d909f8e0fdb9157b858e24db0c23ab61e55e9
demux_lavf: add hack for stream-changing ogg input (internet radio)

Some internet radio streams are ogg/vorbis with a new stream for each
track (and the previous stream stops receiving data). Add a hack to
ignore the stream number in packets when input seems to match this
case; all packets will be effectively regarded as parts of the same
audio stream. This workaround can't work perfectly with current lavf
because it will keep adding streams and then hit its 20 stream
maximum; at that point playback will likely fail. Print a warning
about this problem and mention "-demuxer ogg" as a possible
workaround.

Currently there's no check that the vorbis extradata is actually
compatible between the streams.
libmpdemux/demux_lavf.c