Merge remote branch 'internal/upstream' into HEAD
This commit is contained in:
commit
5d012fc26b
@ -1652,13 +1652,6 @@ void vp8_init_config(VP8_PTR ptr, VP8_CONFIG *oxcf)
|
||||
else if (cpi->oxcf.lag_in_frames > MAX_LAG_BUFFERS)
|
||||
cpi->oxcf.lag_in_frames = MAX_LAG_BUFFERS;
|
||||
|
||||
// force play_alternate to 0 if allow_lag is 0, lag_in_frames is too small, Mode is real time or one pass compress enabled.
|
||||
if (cpi->oxcf.allow_lag == 0 || cpi->oxcf.lag_in_frames <= 5 || (cpi->oxcf.Mode < MODE_SECONDPASS))
|
||||
{
|
||||
cpi->oxcf.play_alternate = 0;
|
||||
cpi->ref_frame_flags = cpi->ref_frame_flags & ~VP8_ALT_FLAG;
|
||||
}
|
||||
|
||||
// YX Temp
|
||||
cpi->last_alt_ref_sei = -1;
|
||||
cpi->is_src_frame_alt_ref = 0;
|
||||
@ -1937,13 +1930,6 @@ void vp8_change_config(VP8_PTR ptr, VP8_CONFIG *oxcf)
|
||||
else if (cpi->oxcf.lag_in_frames > MAX_LAG_BUFFERS)
|
||||
cpi->oxcf.lag_in_frames = MAX_LAG_BUFFERS;
|
||||
|
||||
// force play_alternate to 0 if allow_lag is 0, lag_in_frames is too small, Mode is real time or one pass compress enabled.
|
||||
if (cpi->oxcf.allow_lag == 0 || cpi->oxcf.lag_in_frames <= 5 || (cpi->oxcf.Mode < MODE_SECONDPASS))
|
||||
{
|
||||
cpi->oxcf.play_alternate = 0;
|
||||
cpi->ref_frame_flags = cpi->ref_frame_flags & ~VP8_ALT_FLAG;
|
||||
}
|
||||
|
||||
// YX Temp
|
||||
cpi->last_alt_ref_sei = -1;
|
||||
cpi->is_src_frame_alt_ref = 0;
|
||||
@ -5223,8 +5209,6 @@ int vp8_get_compressed_data(VP8_PTR ptr, unsigned int *frame_flags, unsigned lon
|
||||
{
|
||||
|
||||
// return to normal state
|
||||
cpi->ref_frame_flags = VP8_ALT_FLAG | VP8_GOLD_FLAG | VP8_LAST_FLAG;
|
||||
|
||||
cm->refresh_entropy_probs = 1;
|
||||
cm->refresh_alt_ref_frame = 0;
|
||||
cm->refresh_golden_frame = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user