[xiph-cvs] cvs commit: ogg/src framing.c

Jack Moffitt jack at xiph.org
Wed Sep 27 22:01:57 PDT 2000



jack        00/09/27 22:01:57

  Modified:    include/ogg ogg.h
               src      framing.c
  Log:
  Where was ogg_sync_destroy... silly xiphmont :)

Revision  Changes    Path
1.5       +1 -1      ogg/include/ogg/ogg.h

Index: ogg.h
===================================================================
RCS file: /usr/local/cvsroot/ogg/include/ogg/ogg.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- ogg.h	2000/09/26 19:29:22	1.4
+++ ogg.h	2000/09/28 05:01:56	1.5
@@ -120,8 +120,8 @@
 
 extern int      ogg_sync_init(ogg_sync_state *oy);
 extern int      ogg_sync_clear(ogg_sync_state *oy);
-extern int      ogg_sync_destroy(ogg_sync_state *oy);
 extern int      ogg_sync_reset(ogg_sync_state *oy);
+extern int	ogg_sync_destroy(ogg_sync_state *oy);
 
 extern char    *ogg_sync_buffer(ogg_sync_state *oy, long size);
 extern int      ogg_sync_wrote(ogg_sync_state *oy, long bytes);

1.4       +9 -1      ogg/src/framing.c

Index: framing.c
===================================================================
RCS file: /usr/local/cvsroot/ogg/src/framing.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- framing.c	2000/09/26 19:29:22	1.3
+++ framing.c	2000/09/28 05:01:56	1.4
@@ -13,7 +13,7 @@
 
  function: code raw [Vorbis] packets into framed OggSquish stream and
            decode Ogg streams back into raw packets
- last mod: $Id: framing.c,v 1.3 2000/09/26 19:29:22 jack Exp $
+ last mod: $Id: framing.c,v 1.4 2000/09/28 05:01:56 jack Exp $
 
  note: The CRC code is directly derived from public domain code by
  Ross Williams (ross at guest.adelaide.edu.au).  See docs/framing.html
@@ -407,6 +407,14 @@
   if(oy){
     if(oy->data)free(oy->data);
     ogg_sync_init(oy);
+  }
+  return(0);
+}
+
+int ogg_sync_destroy(ogg_sync_state *oy){
+  if(oy){
+    ogg_sync_clear(oy);
+    free(oy);
   }
   return(0);
 }

--- >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