Commit 72120969 authored by Jingning Han's avatar Jingning Han Committed by Yaowu Xu
Browse files

Use the actual inter prediction filter buffer in DRL

This avoids an encoding segmentation fault in speed 5, due to the
use of uninitialized dummy inter prediction filter buffer in the
dynamic motion vector referencing scheme.

Change-Id: Icd888d46623e8abf34267838135eed8656d552e4
parent 59b969da
...@@ -8989,10 +8989,6 @@ void av1_rd_pick_inter_mode_sb(const AV1_COMP *cpi, TileDataEnc *tile_data, ...@@ -8989,10 +8989,6 @@ void av1_rd_pick_inter_mode_sb(const AV1_COMP *cpi, TileDataEnc *tile_data,
clamp_mv2(&cur_mv.as_mv, xd); clamp_mv2(&cur_mv.as_mv, xd);
if (!mv_check_bounds(x, &cur_mv.as_mv)) { if (!mv_check_bounds(x, &cur_mv.as_mv)) {
InterpFilter dummy_single_inter_filter[MB_MODE_COUNT]
[TOTAL_REFS_PER_FRAME] = {
{ 0 }
};
int dummy_single_skippable[MB_MODE_COUNT] int dummy_single_skippable[MB_MODE_COUNT]
[TOTAL_REFS_PER_FRAME] = { { 0 } }; [TOTAL_REFS_PER_FRAME] = { { 0 } };
#if CONFIG_EXT_INTER #if CONFIG_EXT_INTER
...@@ -9020,8 +9016,7 @@ void av1_rd_pick_inter_mode_sb(const AV1_COMP *cpi, TileDataEnc *tile_data, ...@@ -9020,8 +9016,7 @@ void av1_rd_pick_inter_mode_sb(const AV1_COMP *cpi, TileDataEnc *tile_data,
#else #else
dummy_single_newmv, dummy_single_newmv,
#endif #endif
dummy_single_inter_filter, dummy_single_skippable, &tmp_sse, single_inter_filter, dummy_single_skippable, &tmp_sse, best_rd);
best_rd);
} }
for (i = 0; i < mbmi->ref_mv_idx; ++i) { for (i = 0; i < mbmi->ref_mv_idx; ++i) {
......
Markdown is supported
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