diff options
author | Stanislav Dolganov <dolganov@qst.hk> | 2016-08-18 14:40:09 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-08-22 16:41:33 +0200 |
commit | 4edd74bd7c0aaef92d3ef81e627ec7660715e9e1 (patch) | |
tree | 1bc6bba98681bfd95847c4bddf92d00ba745e500 /libavcodec/motion_est.c | |
parent | dcfd24b10c7eaec4b7b1ec2c4abb46808721a71d (diff) | |
download | ffmpeg-4edd74bd7c0aaef92d3ef81e627ec7660715e9e1.tar.gz |
avcodec/me_cmp: add median SAD compare function
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/motion_est.c')
-rw-r--r-- | libavcodec/motion_est.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/motion_est.c b/libavcodec/motion_est.c index 257d00b59e..25b606f819 100644 --- a/libavcodec/motion_est.c +++ b/libavcodec/motion_est.c @@ -897,6 +897,7 @@ static inline int get_penalty_factor(int lambda, int lambda2, int type){ case FF_CMP_NSSE: return lambda2>>FF_LAMBDA_SHIFT; case FF_CMP_BIT: + case FF_CMP_MEDIAN_SAD: return 1; } } |