[Mplayer-cvslog] CVS: main/libmpdemux demux_ogg.c,1.31,1.32
Moritz Bunkus CVS
mosu at mplayerhq.hu
Thu Aug 28 19:32:59 CEST 2003
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv17340
Modified Files:
demux_ogg.c
Log Message:
Fix for Theora files without audio. Patch by David Kuehling <dvdkhlng at gmx.de>.
Index: demux_ogg.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_ogg.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- demux_ogg.c 18 Aug 2003 13:13:26 -0000 1.31
+++ demux_ogg.c 28 Aug 2003 17:32:28 -0000 1.32
@@ -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;
More information about the MPlayer-cvslog
mailing list