Commit 1f71d2e2 authored by John Koleszar's avatar John Koleszar
Browse files

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
Showing with 1 addition and 1 deletion
...@@ -161,7 +161,7 @@ void vp8cx_pick_filter_level_fast(YV12_BUFFER_CONFIG *sd, VP8_COMP *cpi) ...@@ -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) if (cm->sharpness_level != cm->last_sharpness_level)
{ {
vp8_loop_filter_update_sharpness(&cm->lf_info, cm->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. // Start the search at the previous frame filter level unless it is now out of range.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment