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

Monty xiphmont at xiph.org
Wed Mar 6 19:36:54 PST 2002



xiphmont    02/03/06 19:36:53

  Modified:    include/ogg ogg.h
               src      framing.c
  Log:
  add 'ogg_stream_reset_serialno()' because it's useful.  The same
  functionality before required a clear/init cycle that involved
  free()/malloc().
  
  Monty

Revision  Changes    Path
1.14      +2 -1      ogg/include/ogg/ogg.h

Index: ogg.h
===================================================================
RCS file: /usr/local/cvsroot/ogg/include/ogg/ogg.h,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- ogg.h	2001/12/20 00:58:44	1.13
+++ ogg.h	2002/03/07 03:36:52	1.14
@@ -11,7 +11,7 @@
  ********************************************************************
 
  function: toplevel libogg include
- last mod: $Id: ogg.h,v 1.13 2001/12/20 00:58:44 segher Exp $
+ last mod: $Id: ogg.h,v 1.14 2002/03/07 03:36:52 xiphmont Exp $
 
  ********************************************************************/
 #ifndef _OGG_H
@@ -152,6 +152,7 @@
 extern int      ogg_stream_init(ogg_stream_state *os,int serialno);
 extern int      ogg_stream_clear(ogg_stream_state *os);
 extern int      ogg_stream_reset(ogg_stream_state *os);
+extern int      ogg_stream_reset_serialno(ogg_stream_state *os,int serialno);
 extern int      ogg_stream_destroy(ogg_stream_state *os);
 extern int      ogg_stream_eos(ogg_stream_state *os);
 

<p><p>1.21      +7 -1      ogg/src/framing.c

Index: framing.c
===================================================================
RCS file: /usr/local/cvsroot/ogg/src/framing.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- framing.c	2001/12/20 00:58:45	1.20
+++ framing.c	2002/03/07 03:36:53	1.21
@@ -12,7 +12,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.20 2001/12/20 00:58:45 segher Exp $
+ last mod: $Id: framing.c,v 1.21 2002/03/07 03:36:53 xiphmont 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
@@ -819,6 +819,12 @@
   os->packetno=0;
   os->granulepos=0;
 
+  return(0);
+}
+
+int ogg_stream_reset_serialno(ogg_stream_state *os,int serialno){
+  ogg_stream_reset(os);
+  os->serialno=serialno;
   return(0);
 }
 

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