fix some warnings from static analysis

http://code.google.com/p/webp/issues/detail?id=138

Change-Id: I21470e965357cc14eab356e2c477c7846ff76ef2
This commit is contained in:
skal
2013-09-12 09:32:28 +02:00
parent 80b54e1c69
commit d51f45f047
10 changed files with 51 additions and 25 deletions

View File

@ -929,7 +929,7 @@ int main(int argc, const char *argv[]) {
// Read the input
if (verbose) {
StopwatchReadAndReset(&stop_watch);
StopwatchReset(&stop_watch);
}
if (!ReadPicture(in_file, &picture, keep_alpha,
(keep_metadata == 0) ? NULL : &metadata)) {
@ -983,7 +983,7 @@ int main(int argc, const char *argv[]) {
// Compress
if (verbose) {
StopwatchReadAndReset(&stop_watch);
StopwatchReset(&stop_watch);
}
if (crop != 0) {
// We use self-cropping using a view.