changeset 2307:df3e4a8e6aac libavcodec

100l (dont reset the sample position at the block end)
author michael
date Thu, 21 Oct 2004 20:01:32 +0000
parents 072fc321fbe6
children de38526a1f3f
files resample2.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/resample2.c	Thu Oct 21 03:11:34 2004 +0000
+++ b/resample2.c	Thu Oct 21 20:01:32 2004 +0000
@@ -223,7 +223,7 @@
         }
     }
     *consumed= FFMAX(index, 0) >> c->phase_shift;
-    index= FFMIN(index, 0);
+    if(index>=0) index &= c->phase_mask;
 
     if(compensation_distance){
         compensation_distance -= dst_index;