Fix warnings

This commit is contained in:
Laurent Fasnacht 2014-04-14 09:36:35 +02:00
parent 184ce38755
commit 89ef1161c4
2 changed files with 2 additions and 3 deletions

View file

@ -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);

View file

@ -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;