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)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 9 Feb 2011 02:33:55 +0000 (03:33 +0100)
commit94dfea71ed370f8e27d99a26612793f7ed7dca46
tree67fbee15aaeb9cb0be7dddb2dc7cf081613b9b28
parent68b2336d13ce9a474cf99d4d855188bab5777e8c
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>
(cherry picked from commit 6bd69e6adadf645fd07e909bebc150eab4b9c3c8)
libavformat/oggdec.c