From 56fd4705c0496bc108ac84c03465d33351d366a5 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 1 Jul 2015 12:16:37 +0200 Subject: [PATCH] avcodec/motion_est_template: Fix undefined shifts in CHECK_MV_DIR() Fixes: signal_sigsegv_2e64ee0_2762_cov_4170502227_missing_frames.avi Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer --- libavcodec/motion_est_template.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavcodec/motion_est_template.c b/libavcodec/motion_est_template.c index ae2cbdea4d..cb8780160b 100644 --- a/libavcodec/motion_est_template.c +++ b/libavcodec/motion_est_template.c @@ -384,13 +384,13 @@ static int qpel_motion_search(MpegEncContext * s, #define CHECK_MV_DIR(x,y,new_dir)\ {\ - const unsigned key = ((y)<