]> git.sesse.net Git - ffmpeg/blobdiff - tests/tiny_psnr.c
Merge commit 'a1d58e3b386cc0bfe16abd9ccee4eed182b7e354'
[ffmpeg] / tests / tiny_psnr.c
index b35ed810fece8c5256157dfabb09f47bc817da16..e09f394f0ea85f159c06d15d684c175b8b39c80f 100644 (file)
@@ -273,6 +273,9 @@ int main(int argc, char *argv[])
     int max_psnr   = -1;
     int max_psnr_shift = 0;
 
+    if (shift_last > shift_first)
+        shift_first -= shift_last - shift_first;
+
     if (argc > 3) {
         if (!strcmp(argv[3], "u8")) {
             len = 1;