]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/hevc_mvs.c
Merge commit 'a238b83b13640e3192d7d4aaad2242f13a9a84a1'
[ffmpeg] / libavcodec / hevc_mvs.c
index 52cfb29fd3161442e0e3753f3c76adea149491ee..1d4c002a1c452bce9c3d6f9da25a2bd46992b594 100644 (file)
@@ -751,7 +751,8 @@ scalef:
         mvpcand_list[numMVPCandLX++] = mxB;
 
     //temporal motion vector prediction candidate
-    if (numMVPCandLX < 2 && s->sh.slice_temporal_mvp_enabled_flag) {
+    if (numMVPCandLX < 2 && s->sh.slice_temporal_mvp_enabled_flag &&
+        mvp_lx_flag == numMVPCandLX) {
         Mv mv_col;
         int available_col = temporal_luma_motion_vector(s, x0, y0, nPbW,
                                                         nPbH, ref_idx,