diff options
author | 2003-08-28 17:32:28 +0000 | |
---|---|---|
committer | 2003-08-28 17:32:28 +0000 | |
commit | a4510b38e2c2cfb34667269f9fd39811fa7c1d5e (patch) | |
tree | 06f7a1966989dfb87290c25ba85e6e293e616efd /libmpdemux/demux_ogg.c | |
parent | 7f30bfeaac3828c7b959bb2a33110bd55da53ccd (diff) |
Fix for Theora files without audio. Patch by David Kuehling <dvdkhlng@gmx.de>.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10712 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/demux_ogg.c')
-rw-r--r-- | libmpdemux/demux_ogg.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libmpdemux/demux_ogg.c b/libmpdemux/demux_ogg.c index 902b2419a7..2728e3f018 100644 --- a/libmpdemux/demux_ogg.c +++ b/libmpdemux/demux_ogg.c @@ -340,7 +340,10 @@ static unsigned char* demux_ogg_read_packet(ogg_stream_t* os,ogg_packet* pack,vo data = pack->packet; os->lastsize = 1; - if (context != NULL) + /* header packets beginn on 1-bit: thus check (*data&0x80). We don't + have theora_state st, until all header packets were passed to the + decoder. */ + if (context != NULL && !(*data&0x80)) { theora_state *st; int64_t usable_granulepos; |