comparison integer.c @ 276:0df0d9771d02 libavutil

Move av_i2int()'s unaltered comments to the header file.
author takis
date Sun, 04 Mar 2007 23:26:01 +0000
parents 14164ec1b454
children d25ab70c93c4
comparison
equal deleted inserted replaced
275:14164ec1b454 276:0df0d9771d02
149 a>>=16; 149 a>>=16;
150 } 150 }
151 return out; 151 return out;
152 } 152 }
153 153
154 /**
155 * converts the given AVInteger to an int64_t.
156 * if the AVInteger is too large to fit into an int64_t,
157 * then only the least significant 64bit will be used
158 */
159 int64_t av_i2int(AVInteger a){ 154 int64_t av_i2int(AVInteger a){
160 int i; 155 int i;
161 int64_t out=(int8_t)a.v[AV_INTEGER_SIZE-1]; 156 int64_t out=(int8_t)a.v[AV_INTEGER_SIZE-1];
162 157
163 for(i= AV_INTEGER_SIZE-2; i>=0; i--){ 158 for(i= AV_INTEGER_SIZE-2; i>=0; i--){