summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJack Moffitt <jack@xiph.org>2000-09-28 05:01:56 +0000
committerJack Moffitt <jack@xiph.org>2000-09-28 05:01:56 +0000
commit73c61eb771f3b84549906ded88eb7a17d61f9e76 (patch)
tree1ea9915fc46bdb6fb7f6afb415631776e0439f78 /src
parentdc147423649c5daf5688b32b8a54ae793701d3d9 (diff)
downloadogg-73c61eb771f3b84549906ded88eb7a17d61f9e76.tar.gz
Where was ogg_sync_destroy... silly xiphmont :)
git-svn-id: http://svn.xiph.org/trunk/ogg@703 0101bb08-14d6-0310-b084-bc0e0c8e3800
Diffstat (limited to 'src')
-rw-r--r--src/framing.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/framing.c b/src/framing.c
index 55caa59..c0dc7e4 100644
--- a/src/framing.c
+++ b/src/framing.c
@@ -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@guest.adelaide.edu.au). See docs/framing.html
@@ -411,6 +411,14 @@ int ogg_sync_clear(ogg_sync_state *oy){
return(0);
}
+int ogg_sync_destroy(ogg_sync_state *oy){
+ if(oy){
+ ogg_sync_clear(oy);
+ free(oy);
+ }
+ return(0);
+}
+
char *ogg_sync_buffer(ogg_sync_state *oy, long size){
/* first, clear out any space that has been previously returned */