Browse code

tiny_psnr: use abs()

Originally committed as revision 24146 to svn://svn.ffmpeg.org/ffmpeg/trunk

Måns Rullgård authored on 2010/07/10 04:27:07
Showing 1 changed files
... ...
@@ -145,7 +145,7 @@ int main(int argc,char* argv[]){
145 145
         }
146 146
     }
147 147
 
148
-    fseek(f[shift<0], shift < 0 ? -shift : shift, SEEK_CUR);
148
+    fseek(f[shift<0], abs(shift), SEEK_CUR);
149 149
 
150 150
     fseek(f[0],skip_bytes,SEEK_CUR);
151 151
     fseek(f[1],skip_bytes,SEEK_CUR);