misc_fixes: Don't use uninitialized probability data.

(cherry picked from commit 7a6cb59dbb)

BUG=https://bugs.chromium.org/p/aomedia/issues/detail?id=2

Change-Id: I17b76fcf0d8c191850350d5aa50dcc007b8b0cdc
This commit is contained in:
Alex Converse 2016-05-24 10:58:00 -07:00
Родитель ee9ac321cb
Коммит ac8cdc8c1f
3 изменённых файлов: 7 добавлений и 14 удалений

Просмотреть файл

@ -276,12 +276,11 @@ void av1_choose_segmap_coding_method(AV1_COMMON *cm, MACROBLOCKD *xd) {
const int count0 = temporal_predictor_count[i][0];
const int count1 = temporal_predictor_count[i][1];
t_nopred_prob[i] = get_binary_prob(count0, count1);
#if CONFIG_MISC_FIXES
av1_prob_diff_update_savings_search(temporal_predictor_count[i],
segp->pred_probs[i],
&t_nopred_prob[i], DIFF_UPDATE_PROB);
#else
t_nopred_prob[i] = get_binary_prob(count0, count1);
#endif
// Add in the predictor signaling cost

Просмотреть файл

@ -123,10 +123,7 @@ TEST_P(ActiveMapRefreshTest, Test) {
ASSERT_NO_FATAL_FAILURE(RunLoop(&video));
}
INSTANTIATE_TEST_CASE_P(
DISABLED_AV1, ActiveMapRefreshTest,
::testing::Combine(
::testing::Values(
static_cast<const libaom_test::CodecFactory *>(&libaom_test::kAV1)),
::testing::Values(::libaom_test::kRealTime), ::testing::Range(5, 6)));
AV1_INSTANTIATE_TEST_CASE(ActiveMapRefreshTest,
::testing::Values(::libaom_test::kRealTime),
::testing::Range(5, 6));
} // namespace

Просмотреть файл

@ -81,10 +81,7 @@ TEST_P(ActiveMapTest, Test) {
ASSERT_NO_FATAL_FAILURE(RunLoop(&video));
}
INSTANTIATE_TEST_CASE_P(
DISABLED_AV1, ActiveMapTest,
::testing::Combine(
::testing::Values(
static_cast<const libaom_test::CodecFactory *>(&libaom_test::kAV1)),
::testing::Values(::libaom_test::kRealTime), ::testing::Range(0, 6)));
AV1_INSTANTIATE_TEST_CASE(ActiveMapTest,
::testing::Values(::libaom_test::kRealTime),
::testing::Range(0, 6));
} // namespace