mirror of
https://github.com/mpv-player/mpv
synced 2025-01-20 21:07:29 +01:00
moved store_ughvlc() before #ifdef HAVE_OGGVORBIS, so it can be used by other demuxers when libogg and/or libvorbis are missing
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18670 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
cd0e349ae6
commit
7535dc582a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user