[FFmpeg-cvslog] r24146 - trunk/tests/tiny_psnr.c

mru subversion
Fri Jul 9 21:27:07 CEST 2010


Author: mru
Date: Fri Jul  9 21:27:07 2010
New Revision: 24146

Log:
tiny_psnr: use abs()

Modified:
   trunk/tests/tiny_psnr.c

Modified: trunk/tests/tiny_psnr.c
==============================================================================
--- trunk/tests/tiny_psnr.c	Fri Jul  9 19:19:18 2010	(r24145)
+++ trunk/tests/tiny_psnr.c	Fri Jul  9 21:27:07 2010	(r24146)
@@ -145,7 +145,7 @@ int main(int argc,char* argv[]){
         }
     }
 
-    fseek(f[shift<0], shift < 0 ? -shift : shift, SEEK_CUR);
+    fseek(f[shift<0], abs(shift), SEEK_CUR);
 
     fseek(f[0],skip_bytes,SEEK_CUR);
     fseek(f[1],skip_bytes,SEEK_CUR);



More information about the ffmpeg-cvslog mailing list