summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/ad_libvorbis.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmpcodecs/ad_libvorbis.c')
-rw-r--r--libmpcodecs/ad_libvorbis.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libmpcodecs/ad_libvorbis.c b/libmpcodecs/ad_libvorbis.c
index 520b07f50a..a10d101126 100644
--- a/libmpcodecs/ad_libvorbis.c
+++ b/libmpcodecs/ad_libvorbis.c
@@ -162,7 +162,7 @@ static int init(sh_audio_t *sh)
if(ov->rg_scale * rg_peak > 1.f)
ov->rg_scale = 1.f / rg_peak;
/* replaygain: security */
- if(ov->rg_scale > 15.)
+ if(ov->rg_scale > 15.)
ov->rg_scale = 15.;
#ifdef CONFIG_TREMOR
ov->rg_scale_int = (int)(ov->rg_scale*64.f);
@@ -180,7 +180,7 @@ static int init(sh_audio_t *sh)
// printf("lower=%d upper=%d \n",(int)ov->vi.bitrate_lower,(int)ov->vi.bitrate_upper);
// Setup the decoder
- sh->channels=ov->vi.channels;
+ sh->channels=ov->vi.channels;
sh->samplerate=ov->vi.rate;
sh->samplesize=2;
// assume 128kbit if bitrate not specified in the header
@@ -208,7 +208,7 @@ static int control(sh_audio_t *sh,int cmd,void* arg, ...)
{
switch(cmd)
{
-#if 0
+#if 0
case ADCTRL_RESYNC_STREAM:
return CONTROL_TRUE;
case ADCTRL_SKIP_FRAME:
@@ -249,7 +249,7 @@ static int decode_audio(sh_audio_t *sh,unsigned char *buf,int minlen,int maxlen)
int clipflag=0;
int convsize=(maxlen-len)/(2*ov->vi.channels); // max size!
int bout=((samples<convsize)?samples:convsize);
-
+
if(bout<=0) break; // no buffer space
/* convert floats to 16 bit signed ints (host order) and
@@ -307,7 +307,7 @@ static int decode_audio(sh_audio_t *sh,unsigned char *buf,int minlen,int maxlen)
}
}
}
-
+
if(clipflag)
mp_msg(MSGT_DECAUDIO,MSGL_DBG2,"Clipping in frame %ld\n",(long)(ov->vd.sequence));
len+=2*ov->vi.channels*bout;