aboutsummaryrefslogtreecommitdiffhomepage
path: root/libmpdemux/demux_ogg.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmpdemux/demux_ogg.c')
-rw-r--r--libmpdemux/demux_ogg.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/libmpdemux/demux_ogg.c b/libmpdemux/demux_ogg.c
index e922e7fa8c..8c4046d3fd 100644
--- a/libmpdemux/demux_ogg.c
+++ b/libmpdemux/demux_ogg.c
@@ -1,6 +1,22 @@
#include "config.h"
+unsigned int store_ughvlc(unsigned char *s, unsigned int v)
+{
+ unsigned int n = 0;
+
+ while(v >= 0xff)
+ {
+ *s++ = 0xff;
+ v -= 0xff;
+ n++;
+ }
+ *s = v;
+ n++;
+
+ return n;
+}
+
#ifdef HAVE_OGGVORBIS
#include <stdlib.h>
@@ -763,22 +779,6 @@ char *demux_ogg_sub_lang(demuxer_t *demuxer, int index) {
static void demux_close_ogg(demuxer_t* demuxer);
-unsigned int store_ughvlc(unsigned char *s, unsigned int v)
-{
- unsigned int n = 0;
-
- while(v >= 0xff)
- {
- *s++ = 0xff;
- v -= 0xff;
- n++;
- }
- *s = v;
- n++;
-
- return n;
-}
-
static void fixup_vorbis_wf(sh_audio_t *sh, ogg_demuxer_t *od)
{
int i, offset;