[SCM] libav/experimental: tiny_psnr: use abs()

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:10:50 UTC 2013


The following commit has been merged in the experimental branch:
commit f6dddd33749db46b44bc25cd7c3044852d129a4f
Author: Måns Rullgård <mans at mansr.com>
Date:   Fri Jul 9 19:27:07 2010 +0000

    tiny_psnr: use abs()
    
    Originally committed as revision 24146 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/tests/tiny_psnr.c b/tests/tiny_psnr.c
index 681fd13..4a8ba42 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);

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list