mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-30 12:44:07 +00:00
Fix warnings
This commit is contained in:
parent
184ce38755
commit
89ef1161c4
|
@ -386,7 +386,7 @@ int main(int argc, char *argv[])
|
||||||
fgetpos(output,(fpos_t*)&curpos);
|
fgetpos(output,(fpos_t*)&curpos);
|
||||||
|
|
||||||
// Print statistics of the coding
|
// 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);
|
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);
|
fprintf(stderr, " Total time: %.3f s.\n", ((float)(clock() - start_time)) / CLOCKS_PER_SEC);
|
||||||
|
|
||||||
|
|
|
@ -227,8 +227,7 @@ int picture_list_rem(picture_list *list, unsigned n, int8_t destroy)
|
||||||
list->used_size--;
|
list->used_size--;
|
||||||
} else {
|
} else {
|
||||||
// Shift all following pics one backward in the list
|
// Shift all following pics one backward in the list
|
||||||
int i;
|
for (; n < list->used_size - 1; ++n) {
|
||||||
for (i = n; n < list->used_size - 1; ++n) {
|
|
||||||
list->pics[n] = list->pics[n + 1];
|
list->pics[n] = list->pics[n + 1];
|
||||||
}
|
}
|
||||||
list->pics[list->used_size - 1] = NULL;
|
list->pics[list->used_size - 1] = NULL;
|
||||||
|
|
Loading…
Reference in a new issue