changeset 18669:f167e56c686b

moved store_ughvlc() before #ifdef HAVE_OGGVORBIS, so it can be used by other demuxers when libogg and/or libvorbis are missing
author nicodvb
date Fri, 09 Jun 2006 21:43:23 +0000
parents 5a77f8808432
children bf04d0097971
files libmpdemux/demux_ogg.c
diffstat 1 files changed, 16 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_ogg.c	Fri Jun 09 21:31:00 2006 +0000
+++ b/libmpdemux/demux_ogg.c	Fri Jun 09 21:43:23 2006 +0000
@@ -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 @@
 
 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;