OSDN Git Service

oggdec: Fix incorrect assumption about header/data interleaving
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sat, 5 Feb 2011 16:32:35 +0000 (16:32 +0000)
committerMans Rullgard <mans@mansr.com>
Tue, 8 Feb 2011 21:40:03 +0000 (21:40 +0000)
commit6bd69e6adadf645fd07e909bebc150eab4b9c3c8
tree154b905da05d7b715320c2d9a07c59de2a5932bc
parentf59c4bd625839dbe1e099c6a8b38988108883623
oggdec: Fix incorrect assumption about header/data interleaving

Currently (since the data_offset fix) the ogg demuxer assumes that
after the first non-header packets in any stream no more header packets
will follow.
This is not guaranteed, so change the code back again to wait until it
has finished the headers for all streams before returning from ogg_get_headers.

This fixes issue 2428.

Signed-off-by: Mans Rullgard <mans@mansr.com>
libavformat/oggdec.c