]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/h264_mc_template.c
avformat/subtitles: treat negative duration like unknown duration
[ffmpeg] / libavcodec / h264_mc_template.c
index eaead35bb2e42cec24abfdd2c3c043c2e162d6af..e4333a733cd3bac7176fd6976b9316383d9ccfe4 100644 (file)
@@ -158,6 +158,7 @@ static void MCFUNC(hl_motion)(const H264Context *h, H264SliceContext *sl,
         }
     }
 
-    prefetch_motion(h, sl, 1, PIXEL_SHIFT, CHROMA_IDC);
+    if (USES_LIST(mb_type, 1))
+        prefetch_motion(h, sl, 1, PIXEL_SHIFT, CHROMA_IDC);
 }