vp8 stats file: initialize to 0
Cleans up -Wextra warning: missing initializer for field ‘intra_error’ of ‘FIRSTPASS_STATS’ Change-Id: I42c1413234aba207f8e89f2e040e14a81bca511e
This commit is contained in:
parent
799ab7c064
commit
3108fbd229
@ -18,6 +18,7 @@
|
|||||||
#include "onyx_int.h"
|
#include "onyx_int.h"
|
||||||
#include "vpx_dsp/variance.h"
|
#include "vpx_dsp/variance.h"
|
||||||
#include "encodeintra.h"
|
#include "encodeintra.h"
|
||||||
|
#include "vp8/common/common.h"
|
||||||
#include "vp8/common/setupintrarecon.h"
|
#include "vp8/common/setupintrarecon.h"
|
||||||
#include "vp8/common/systemdependent.h"
|
#include "vp8/common/systemdependent.h"
|
||||||
#include "mcomp.h"
|
#include "mcomp.h"
|
||||||
@ -2417,7 +2418,7 @@ void vp8_second_pass(VP8_COMP *cpi)
|
|||||||
int tmp_q;
|
int tmp_q;
|
||||||
int frames_left = (int)(cpi->twopass.total_stats.count - cpi->common.current_video_frame);
|
int frames_left = (int)(cpi->twopass.total_stats.count - cpi->common.current_video_frame);
|
||||||
|
|
||||||
FIRSTPASS_STATS this_frame = {0};
|
FIRSTPASS_STATS this_frame;
|
||||||
FIRSTPASS_STATS this_frame_copy;
|
FIRSTPASS_STATS this_frame_copy;
|
||||||
|
|
||||||
double this_frame_intra_error;
|
double this_frame_intra_error;
|
||||||
@ -2425,6 +2426,8 @@ void vp8_second_pass(VP8_COMP *cpi)
|
|||||||
|
|
||||||
int overhead_bits;
|
int overhead_bits;
|
||||||
|
|
||||||
|
vp8_zero(this_frame);
|
||||||
|
|
||||||
if (!cpi->twopass.stats_in)
|
if (!cpi->twopass.stats_in)
|
||||||
{
|
{
|
||||||
return ;
|
return ;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user