| Index: third_party/libwebp/enc/frame_enc.c
|
| diff --git a/third_party/libwebp/enc/frame.c b/third_party/libwebp/enc/frame_enc.c
|
| similarity index 99%
|
| rename from third_party/libwebp/enc/frame.c
|
| rename to third_party/libwebp/enc/frame_enc.c
|
| index 57fc471d17c74574e894666418ca29bee099327e..abef523bbfdf53fdb4b251c3964a07ee5aa82e79 100644
|
| --- a/third_party/libwebp/enc/frame.c
|
| +++ b/third_party/libwebp/enc/frame_enc.c
|
| @@ -14,8 +14,8 @@
|
| #include <string.h>
|
| #include <math.h>
|
|
|
| -#include "./cost.h"
|
| -#include "./vp8enci.h"
|
| +#include "./cost_enc.h"
|
| +#include "./vp8i_enc.h"
|
| #include "../dsp/dsp.h"
|
| #include "../webp/format_constants.h" // RIFF constants
|
|
|
| @@ -248,8 +248,9 @@ static int PutCoeffs(VP8BitWriter* const bw, int ctx, const VP8Residual* res) {
|
| p = res->prob[VP8EncBands[n]][1];
|
| } else {
|
| if (!VP8PutBit(bw, v > 4, p[3])) {
|
| - if (VP8PutBit(bw, v != 2, p[4]))
|
| + if (VP8PutBit(bw, v != 2, p[4])) {
|
| VP8PutBit(bw, v == 4, p[5]);
|
| + }
|
| } else if (!VP8PutBit(bw, v > 10, p[6])) {
|
| if (!VP8PutBit(bw, v > 6, p[7])) {
|
| VP8PutBit(bw, v == 6, 159);
|
| @@ -557,8 +558,9 @@ static uint64_t OneStatPass(VP8Encoder* const enc, VP8RDLevel rd_opt,
|
| size += info.R + info.H;
|
| size_p0 += info.H;
|
| distortion += info.D;
|
| - if (percent_delta && !VP8IteratorProgress(&it, percent_delta))
|
| + if (percent_delta && !VP8IteratorProgress(&it, percent_delta)) {
|
| return 0;
|
| + }
|
| VP8IteratorSaveBoundary(&it);
|
| } while (VP8IteratorNext(&it) && --nb_mbs > 0);
|
|
|
|
|