1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

hevc: derive partially amvp list

When the candidate has been found, no need to derive others.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Christophe Gisquet 2014-07-10 06:47:53 +00:00 committed by Michael Niedermayer
parent 7e7168b82d
commit bbeaae96eb

View File

@ -720,6 +720,11 @@ void ff_hevc_luma_mv_mvp_mode(HEVCContext *s, int x0, int y0, int nPbW,
availableFlagLXA0 = MP_MX_LT(A1, pred_flag_index_l1, mxA);
}
if(availableFlagLXA0 && !mvp_lx_flag) {
mv->mv[LX] = mxA;
return;
}
// B candidates
// above right spatial merge candidate
xB0 = x0 + nPbW;