diff options
author | Måns Rullgård <mans@mansr.com> | 2010-07-09 23:27:07 +0400 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2010-07-09 23:27:07 +0400 |
commit | f6dddd33749db46b44bc25cd7c3044852d129a4f (patch) | |
tree | 54df25374e2453fba0fda7047c86c73abbcd4337 /tests/tiny_psnr.c | |
parent | 5f0278f51c8b153e1499fc68dc13a42ca34983c7 (diff) |
tiny_psnr: use abs()
Originally committed as revision 24146 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'tests/tiny_psnr.c')
-rw-r--r-- | tests/tiny_psnr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tiny_psnr.c b/tests/tiny_psnr.c index 681fd13951..4a8ba42ad7 100644 --- a/tests/tiny_psnr.c +++ b/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); |