Mercurial > libavcodec.hg
comparison resample2.c @ 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 |
comparison
equal
deleted
inserted
replaced
| 2306:072fc321fbe6 | 2307:df3e4a8e6aac |
|---|---|
| 221 dst_incr_frac= c->ideal_dst_incr % c->src_incr; | 221 dst_incr_frac= c->ideal_dst_incr % c->src_incr; |
| 222 dst_incr= c->ideal_dst_incr / c->src_incr; | 222 dst_incr= c->ideal_dst_incr / c->src_incr; |
| 223 } | 223 } |
| 224 } | 224 } |
| 225 *consumed= FFMAX(index, 0) >> c->phase_shift; | 225 *consumed= FFMAX(index, 0) >> c->phase_shift; |
| 226 index= FFMIN(index, 0); | 226 if(index>=0) index &= c->phase_mask; |
| 227 | 227 |
| 228 if(compensation_distance){ | 228 if(compensation_distance){ |
| 229 compensation_distance -= dst_index; | 229 compensation_distance -= dst_index; |
| 230 assert(compensation_distance > 0); | 230 assert(compensation_distance > 0); |
| 231 } | 231 } |
