From: John Koleszar Date: Fri, 29 Jul 2011 16:26:55 +0000 (-0400) Subject: Correctly track sharpness in vp8cx_pick_filter_level_fast X-Git-Tag: v0.9.7~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1f71d2e2c85b8fcecbfe8e1605a654580b375b4f;p=libvpx Correctly track sharpness in vp8cx_pick_filter_level_fast Make sure to update last_sharpness_level from the current sharpness_level whenever it changes. Change-Id: I0258d2f5b11a407abf6176a8d4c4994d925943f0 --- diff --git a/vp8/encoder/picklpf.c b/vp8/encoder/picklpf.c index 49de62d7d..beefe8d8e 100644 --- a/vp8/encoder/picklpf.c +++ b/vp8/encoder/picklpf.c @@ -161,7 +161,7 @@ void vp8cx_pick_filter_level_fast(YV12_BUFFER_CONFIG *sd, VP8_COMP *cpi) if (cm->sharpness_level != cm->last_sharpness_level) { vp8_loop_filter_update_sharpness(&cm->lf_info, cm->sharpness_level); - cm->last_sharpness_level = cm->last_sharpness_level; + cm->last_sharpness_level = cm->sharpness_level; } // Start the search at the previous frame filter level unless it is now out of range.