[xiph-cvs] cvs commit: theora/lib toplevel.c
Monty
xiphmont at xiph.org
Mon Sep 23 22:06:16 PDT 2002
xiphmont 02/09/24 01:06:15
Modified: lib toplevel.c
Log:
Avoid losing work
Revision Changes Path
1.10 +3 -2 theora/lib/toplevel.c
Index: toplevel.c
===================================================================
RCS file: /usr/local/cvsroot/theora/lib/toplevel.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- toplevel.c 23 Sep 2002 23:18:07 -0000 1.9
+++ toplevel.c 24 Sep 2002 05:06:14 -0000 1.10
@@ -11,7 +11,7 @@
********************************************************************
function:
- last mod: $Id: toplevel.c,v 1.9 2002/09/23 23:18:07 xiphmont Exp $
+ last mod: $Id: toplevel.c,v 1.10 2002/09/24 05:06:14 xiphmont Exp $
********************************************************************/
@@ -1080,7 +1080,6 @@
int ret;
oggpack_buffer opb;
oggpackB_readinit(&opb,op->packet,op->bytes);
- memset(c,0,sizeof(*c));
if(!op->b_o_s)return(OC_BADHEADER);
{
@@ -1094,6 +1093,8 @@
id[i]=(char)oggpackB_read(&opb,8);
if(memcmp(id,"theora",6))return(OC_NOTFORMAT);
+
+ memset(c,0,sizeof(*c));
c->version_major=oggpackB_read(&opb,8);
c->version_minor=oggpackB_read(&opb,8);
<p><p>--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list