Skip to content
Snippets Groups Projects
Commit 6eb35eb4 authored by Urvang Joshi's avatar Urvang Joshi Committed by Sebastien Alaiwan
Browse files

optimize_b_greedy: Avoid left shift of negative value.

Before:
-------
accu_error was always <= 0:
- It was initialized to zero, and
- Became more and more negative through the iterations.

This meant that RDOPT() macro usage on accu_error was causing left shift
of negative value.

Now:
----
- accu_error is initialized to a large positive value.
- It becomes smaller on every iteration but remains >= always.

This is functionally equivalent: verified that there's no change in
output due to this patch.

BUG=aomedia:600

Change-Id: I654572a72234c588c8f332d5b66a5587fc6610b4
parent 6c20c78f
No related branches found
No related tags found
2 merge requests!6Rav1e 11 yushin 1,!3Rav1e 10 yushin
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment