Browse Source

tiny_psnr: use abs()

Originally committed as revision 24146 to svn://svn.ffmpeg.org/ffmpeg/trunk
Måns Rullgård 14 years ago
parent
commit
f6dddd3374
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/tiny_psnr.c

+ 1 - 1
tests/tiny_psnr.c

@@ -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);