summaryrefslogtreecommitdiff
path: root/src/framing.c
diff options
context:
space:
mode:
authorMike Smith <msmith@xiph.org>2001-01-18 10:54:32 +0000
committerMike Smith <msmith@xiph.org>2001-01-18 10:54:32 +0000
commit61060fcbcefc390c4ea43f647d925af9c186b355 (patch)
treecb322ffa9b90c477130fbfc8946eb6050185aeaf /src/framing.c
parentfe6950f2d52067f732c1cacca1ad104a5b0adbee (diff)
downloadogg-61060fcbcefc390c4ea43f647d925af9c186b355.tar.gz
Added vorbis_commentheader_out() to vorbis
Added ogg_packet_clear to ogg Updated vcedit.c to use them. There's now enough source there to build a working and useful comment editor. git-svn-id: http://svn.xiph.org/trunk/ogg@1172 0101bb08-14d6-0310-b084-bc0e0c8e3800
Diffstat (limited to 'src/framing.c')
-rw-r--r--src/framing.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/framing.c b/src/framing.c
index 720bc08..9249d43 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.8 2000/11/13 23:54:59 xiphmont Exp $
+ last mod: $Id: framing.c,v 1.9 2001/01/18 10:54:30 msmith Exp $
note: The CRC code is directly derived from public domain code by
Ross Williams (ross@guest.adelaide.edu.au). See docs/framing.html
@@ -815,6 +815,11 @@ int ogg_stream_packetout(ogg_stream_state *os,ogg_packet *op){
return(1);
}
+void ogg_packet_clear(ogg_packet *op) {
+ free(op->packet);
+ memset(op, 0, sizeof(ogg_packet));
+}
+
#ifdef _V_SELFTEST
#include <stdio.h>