Skip to content

Commit 3187fa1

Browse files
cgisquetelenril
authored andcommitted
hevc_mvs: avoid deriving tmvp in amvp
Reduces the number of calls to tmvp derivation from 933685 to 586271 on a sequence. Reviewed-by: Mickaël Raulet <[email protected]> Signed-off-by: Anton Khirnov <[email protected]>
1 parent 14ca0aa commit 3187fa1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libavcodec/hevc_mvs.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,8 @@ void ff_hevc_luma_mv_mvp_mode(HEVCContext *s, int x0, int y0, int nPbW,
828828
mvpcand_list[numMVPCandLX++] = mxB;
829829

830830
//temporal motion vector prediction candidate
831-
if (numMVPCandLX < 2 && s->sh.slice_temporal_mvp_enabled_flag) {
831+
if (numMVPCandLX < 2 && s->sh.slice_temporal_mvp_enabled_flag &&
832+
mvp_lx_flag == numMVPCandLX) {
832833
Mv mv_col;
833834
int available_col = temporal_luma_motion_vector(s, x0, y0, nPbW,
834835
nPbH, ref_idx,

0 commit comments

Comments
 (0)