summaryrefslogtreecommitdiff
path: root/dsp.c
diff options
context:
space:
mode:
Diffstat (limited to 'dsp.c')
-rw-r--r--dsp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dsp.c b/dsp.c
index 882b685..eaa3649 100644
--- a/dsp.c
+++ b/dsp.c
@@ -263,10 +263,10 @@ int vorbis_dsp_synthesis(vorbis_dsp_state *vd,ogg_packet *op,int decodep){
/* granulepos could be -1 due to a seek, but that would result
in a long coun t, not short count */
- vd->out_end-=vd->sample_count-vd->granulepos;
+ vd->out_end-=(int)(vd->sample_count-vd->granulepos);
}else{
/* trim the beginning */
- vd->out_begin+=vd->sample_count-vd->granulepos;
+ vd->out_begin+=(int)(vd->sample_count-vd->granulepos);
if(vd->out_begin>vd->out_end)
vd->out_begin=vd->out_end;
}
@@ -280,7 +280,7 @@ int vorbis_dsp_synthesis(vorbis_dsp_state *vd,ogg_packet *op,int decodep){
if(op->granulepos!=-1 && vd->granulepos!=op->granulepos){
if(vd->granulepos>op->granulepos){
- long extra=vd->granulepos-op->granulepos;
+ long extra=(long)(vd->granulepos-op->granulepos);
if(extra)
if(op->e_o_s){