# HG changeset patch # User mosu # Date 1062091948 0 # Node ID bc1aad87439a0e87fb44a4863dfea52b7dd82b5a # Parent ef7e390611884284d27bb29e15d81d6bd6d60eae Fix for Theora files without audio. Patch by David Kuehling . diff -r ef7e39061188 -r bc1aad87439a libmpdemux/demux_ogg.c --- a/libmpdemux/demux_ogg.c Thu Aug 28 13:31:44 2003 +0000 +++ b/libmpdemux/demux_ogg.c Thu Aug 28 17:32:28 2003 +0000 @@ -340,7 +340,10 @@ 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;