diff options
Diffstat (limited to 'vp8/encoder/onyx_if.c')
-rw-r--r-- | vp8/encoder/onyx_if.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/vp8/encoder/onyx_if.c b/vp8/encoder/onyx_if.c index 639d53dbc..779577f2d 100644 --- a/vp8/encoder/onyx_if.c +++ b/vp8/encoder/onyx_if.c @@ -541,6 +541,20 @@ static void init_seg_features(VP8_COMP *cpi) // All other frames if segmentation has been enabled else if ( xd->segmentation_enabled ) { + int i; + + // clears prior frame seg lev refs + for (i = 0; i < MAX_MB_SEGMENTS; i++) + { + // only do it if the force drop the background stuff is off + if(!segfeature_active(xd, i, SEG_LVL_MODE)) + { + disable_segfeature(xd,i,SEG_LVL_REF_FRAME); + set_segdata( xd,i, SEG_LVL_REF_FRAME, 0xffffff); + } + } + + // First normal frame in a valid gf or alt ref group if ( cpi->common.frames_since_golden == 0 ) { |