diff dsputil.c @ 6218:dfdff1ca78a7 libavcodec

consts I have underestimated this a little, and these are just some ...
author michael
date Fri, 01 Feb 2008 03:26:31 +0000
parents 558c1fd0ee72
children 2799f65a24de
line wrap: on
line diff
--- a/dsputil.c	Fri Feb 01 02:36:09 2008 +0000
+++ b/dsputil.c	Fri Feb 01 03:26:31 2008 +0000
@@ -3785,7 +3785,7 @@
 void ff_float_to_int16_c(int16_t *dst, const float *src, int len){
     int i;
     for(i=0; i<len; i++) {
-        int_fast32_t tmp = ((int32_t*)src)[i];
+        int_fast32_t tmp = ((const int32_t*)src)[i];
         if(tmp & 0xf0000){
             tmp = (0x43c0ffff - tmp)>>31;
             // is this faster on some gcc/cpu combinations?