Fix 2 warning when building with GCC 5.
These caused the following warning with GCC 5: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses] assert(!is_compound == (cm->reference_mode == SINGLE_REFERENCE)); Change-Id: If296aabb2311ceb7d903b395c1549ef81c2cbf9b
This commit is contained in:
@@ -833,7 +833,7 @@ static void write_ref_frames(const VP10_COMMON *cm, const MACROBLOCKD *xd,
|
||||
if (cm->reference_mode == REFERENCE_MODE_SELECT) {
|
||||
vp10_write(w, is_compound, vp10_get_reference_mode_prob(cm, xd));
|
||||
} else {
|
||||
assert(!is_compound == (cm->reference_mode == SINGLE_REFERENCE));
|
||||
assert((!is_compound) == (cm->reference_mode == SINGLE_REFERENCE));
|
||||
}
|
||||
|
||||
if (is_compound) {
|
||||
|
@@ -210,7 +210,7 @@ static void write_ref_frames(const VP9_COMMON *cm, const MACROBLOCKD *xd,
|
||||
if (cm->reference_mode == REFERENCE_MODE_SELECT) {
|
||||
vpx_write(w, is_compound, vp9_get_reference_mode_prob(cm, xd));
|
||||
} else {
|
||||
assert(!is_compound == (cm->reference_mode == SINGLE_REFERENCE));
|
||||
assert((!is_compound) == (cm->reference_mode == SINGLE_REFERENCE));
|
||||
}
|
||||
|
||||
if (is_compound) {
|
||||
|
Reference in New Issue
Block a user