comparison pcm.c @ 4973:91015dc624ad libavcodec

Revert r8979 (Ugly fix for r8963)
author ramiro
date Thu, 10 May 2007 18:44:58 +0000
parents 28b67304e5d0
children ad384eda0cb7
comparison
equal deleted inserted replaced
4972:c443ed30f430 4973:91015dc624ad
175 memset(*dst, 0, n * bps); 175 memset(*dst, 0, n * bps);
176 if (le) *dst += bps - 2; 176 if (le) *dst += bps - 2;
177 for(;n>0;n--) { 177 for(;n>0;n--) {
178 register int v = *(*samples)++; 178 register int v = *(*samples)++;
179 v += usum; 179 v += usum;
180 if (le) {AV_WL16(*dst, v);} 180 if (le) AV_WL16(*dst, v);
181 else {AV_WB16(*dst, v);} 181 else AV_WB16(*dst, v);
182 *dst += bps; 182 *dst += bps;
183 } 183 }
184 if (le) *dst -= bps - 2; 184 if (le) *dst -= bps - 2;
185 } 185 }
186 186