[FFmpeg-devel] [PATCH 6/9] hevc: derive partially amvp list
Christophe Gisquet
christophe.gisquet at gmail.com
Thu Jul 10 08:47:53 CEST 2014
When the candidate has been found, no need to derive others.
---
libavcodec/hevc_mvs.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/libavcodec/hevc_mvs.c b/libavcodec/hevc_mvs.c
index 0302c88..952a431 100644
--- a/libavcodec/hevc_mvs.c
+++ b/libavcodec/hevc_mvs.c
@@ -737,6 +737,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;
--
1.9.2.msysgit.0
More information about the ffmpeg-devel
mailing list