[FFmpeg-cvslog] r14267 - trunk/libavcodec/ra288.c
vitor
subversion
Fri Jul 18 00:42:23 CEST 2008
Author: vitor
Date: Fri Jul 18 00:42:21 2008
New Revision: 14267
Log:
Simplify
Modified:
trunk/libavcodec/ra288.c
Modified: trunk/libavcodec/ra288.c
==============================================================================
--- trunk/libavcodec/ra288.c (original)
+++ trunk/libavcodec/ra288.c Fri Jul 18 00:42:21 2008
@@ -108,13 +108,10 @@ static int pred(float *in, float *tgt, i
if ((f0 = *in) <= 0)
return 0;
- for (x=1 ; ; x++) {
+ for (x=1; x <= n; x++) {
float *p1 = in + x;
float *p2 = tgt;
- if (n < x)
- return 1;
-
f1 = *(p1--);
for (y=0; y < x - 1; y++)
@@ -131,6 +128,8 @@ static int pred(float *in, float *tgt, i
if ((f0 += f1*f2) < 0)
return 0;
}
+
+ return 1;
}
/* product sum (lsf) */
More information about the ffmpeg-cvslog
mailing list