Match braces in rdopt.c
This makes motion by function easier in some editors (such as Emacs or
vi), which get a bit confused by
#if 1
foo {
#else
foo {
#endif
bar;
}
Change-Id: Ie9d8c34d3b9fafdac634db5f3647f3cc1611ebee
diff --git a/av1/encoder/rdopt.c b/av1/encoder/rdopt.c
index ef31654..ac3a6d9 100644
--- a/av1/encoder/rdopt.c
+++ b/av1/encoder/rdopt.c
@@ -6454,10 +6454,12 @@
x->best_mv.as_mv.row *= 8;
x->best_mv.as_mv.col *= 8;
}
- if (bestsme < INT_MAX && cpi->common.cur_frame_force_integer_mv == 0) {
+ const int use_fractional_mv =
+ bestsme < INT_MAX && cpi->common.cur_frame_force_integer_mv == 0;
#else
- if (bestsme < INT_MAX) {
+ const int use_fractional_mv = bestsme < INT_MAX;
#endif
+ if (use_fractional_mv) {
int dis; /* TODO: use dis in distortion calculation later. */
switch (mbmi->motion_mode) {
case SIMPLE_TRANSLATION:
@@ -6711,10 +6713,12 @@
x->best_mv.as_mv.row *= 8;
x->best_mv.as_mv.col *= 8;
}
- if (bestsme < INT_MAX && cpi->common.cur_frame_force_integer_mv == 0) {
+ const int use_fractional_mv =
+ bestsme < INT_MAX && cpi->common.cur_frame_force_integer_mv == 0;
#else
- if (bestsme < INT_MAX) {
+ const int use_fractional_mv = bestsme < INT_MAX;
#endif
+ if (use_fractional_mv) {
int dis; /* TODO: use dis in distortion calculation later. */
unsigned int sse;
bestsme = cpi->find_fractional_mv_step(