diff --git a/src/encmain.c b/src/encmain.c index 6a4bd2ba..b1a8f5a1 100644 --- a/src/encmain.c +++ b/src/encmain.c @@ -386,7 +386,7 @@ int main(int argc, char *argv[]) fgetpos(output,(fpos_t*)&curpos); // Print statistics of the coding - fprintf(stderr, " Processed %d frames, %10lld bits AVG PSNR: %2.4f %2.4f %2.4f\n", encoder->frame, curpos<<3, + fprintf(stderr, " Processed %d frames, %10llu bits AVG PSNR: %2.4f %2.4f %2.4f\n", encoder->frame, (long long unsigned int) curpos<<3, psnr[0] / encoder->frame, psnr[1] / encoder->frame, psnr[2] / encoder->frame); fprintf(stderr, " Total time: %.3f s.\n", ((float)(clock() - start_time)) / CLOCKS_PER_SEC); diff --git a/src/picture.c b/src/picture.c index 8e6280a9..e73f879d 100644 --- a/src/picture.c +++ b/src/picture.c @@ -227,8 +227,7 @@ int picture_list_rem(picture_list *list, unsigned n, int8_t destroy) list->used_size--; } else { // Shift all following pics one backward in the list - int i; - for (i = n; n < list->used_size - 1; ++n) { + for (; n < list->used_size - 1; ++n) { list->pics[n] = list->pics[n + 1]; } list->pics[list->used_size - 1] = NULL;