summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMonty <xiphmont@xiph.org>2000-11-05 23:50:21 +0000
committerMonty <xiphmont@xiph.org>2000-11-05 23:50:21 +0000
commit94ea77b24bd9f3a356cdbcd0bd224e0b12f0c4b2 (patch)
tree0c51c8ce5e531310267eb5d65624bf8617c97a60 /include
parenta14c451e9272c3fbb1733eaf43b06d5b44608c07 (diff)
downloadogg-94ea77b24bd9f3a356cdbcd0bd224e0b12f0c4b2.tar.gz
Merge branch_beta3 onto the mainline.
Monty git-svn-id: http://svn.xiph.org/trunk/ogg@989 0101bb08-14d6-0310-b084-bc0e0c8e3800
Diffstat (limited to 'include')
-rw-r--r--include/ogg/ogg.h28
-rw-r--r--include/ogg/os_types.h18
2 files changed, 26 insertions, 20 deletions
diff --git a/include/ogg/ogg.h b/include/ogg/ogg.h
index b35b4c8..be5cdd3 100644
--- a/include/ogg/ogg.h
+++ b/include/ogg/ogg.h
@@ -35,10 +35,10 @@ typedef struct {
long body_returned; /* elements of fill returned */
- int *lacing_vals; /* The values that will go to the segment table */
- ogg_int64_t *granule_vals; /* granulepos values for headers. Not compact
- this way, but it is simple coupled to the
- lacing fifo */
+ int *lacing_vals; /* The values that will go to the segment table */
+ ogg_int64_t *granule_vals; /* granulepos values for headers. Not compact
+ this way, but it is simple coupled to the
+ lacing fifo */
long lacing_storage;
long lacing_fill;
long lacing_packet;
@@ -51,8 +51,8 @@ typedef struct {
logical bitstream */
int b_o_s; /* set after we've written the initial page
of a logical bitstream */
- long serialno;
- int pageno;
+ long serialno;
+ long pageno;
ogg_int64_t packetno; /* sequence number for decode; the framing
knows where there's a hole in the data,
but we need coupling so that the codec
@@ -72,12 +72,12 @@ typedef struct {
long e_o_s;
ogg_int64_t granulepos;
- ogg_int64_t packetno; /* sequence number for decode; the framing
- knows where there's a hole in the data,
- but we need coupling so that the codec
- (which is in a seperate abstraction
- layer) also knows about the gap */
-
+
+ ogg_int64_t packetno; /* sequence number for decode; the framing
+ knows where there's a hole in the data,
+ but we need coupling so that the codec
+ (which is in a seperate abstraction
+ layer) also knows about the gap */
} ogg_packet;
typedef struct {
@@ -144,8 +144,8 @@ extern int ogg_page_bos(ogg_page *og);
extern int ogg_page_eos(ogg_page *og);
extern ogg_int64_t ogg_page_granulepos(ogg_page *og);
extern int ogg_page_serialno(ogg_page *og);
-extern int ogg_page_pageno(ogg_page *og);
- extern int ogg_page_packets(ogg_page *og);
+extern long ogg_page_pageno(ogg_page *og);
+extern int ogg_page_packets(ogg_page *og);
#ifdef __cplusplus
diff --git a/include/ogg/os_types.h b/include/ogg/os_types.h
index a019c41..15455dc 100644
--- a/include/ogg/os_types.h
+++ b/include/ogg/os_types.h
@@ -1,23 +1,29 @@
/********************************************************************
* *
- * THIS FILE IS PART OF THE Ogg Vorbis SOFTWARE CODEC SOURCE CODE. *
+ * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. *
* USE, DISTRIBUTION AND REPRODUCTION OF THIS SOURCE IS GOVERNED BY *
- * THE GNU PUBLIC LICENSE 2, WHICH IS INCLUDED WITH THIS SOURCE. *
- * PLEASE READ THESE TERMS DISTRIBUTING. *
+ * THE GNU LESSER/LIBRARY PUBLIC LICENSE, WHICH IS INCLUDED WITH *
+ * THIS SOURCE. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
* *
- * THE OggSQUISH SOURCE CODE IS (C) COPYRIGHT 1994-2000 *
- * by Monty <monty@xiph.org> and The XIPHOPHORUS Company *
+ * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2000 *
+ * by Monty <monty@xiph.org> and the XIPHOPHORUS Company *
* http://www.xiph.org/ *
* *
********************************************************************
function: #ifdef jail to whip a few platforms into the UNIX ideal.
- last mod: $Id: os_types.h,v 1.1 2000/10/06 07:32:30 jack Exp $
+ last mod: $Id: os_types.h,v 1.2 2000/11/05 23:50:21 xiphmont Exp $
********************************************************************/
#ifndef _OS_TYPES_H
#define _OS_TYPES_H
+/* make it easy on the folks that want to compile the libs with a
+ different malloc than stdlib */
+#define _ogg_malloc malloc
+#define _ogg_calloc calloc
+#define _ogg_realloc realloc
+
#ifdef _WIN32
# ifndef __GNUC__