Mercurial > libavcodec.hg
changeset 3401:e88c3bc82b15 libavcodec
Correctly detect when use hpel or qpel mode
author | kostya |
---|---|
date | Mon, 03 Jul 2006 17:22:18 +0000 |
parents | 84de54d536bd |
children | 34d3e497e310 |
files | vc1.c |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/vc1.c Mon Jul 03 17:21:18 2006 +0000 +++ b/vc1.c Mon Jul 03 17:22:18 2006 +0000 @@ -1330,7 +1330,12 @@ } if(v->mv_mode == MV_PMODE_1MV_HPEL || v->mv_mode == MV_PMODE_1MV_HPEL_BILIN) v->s.quarter_sample = 0; - else + else if(v->mv_mode == MV_PMODE_INTENSITY_COMP) { + if(v->mv_mode2 == MV_PMODE_1MV_HPEL || v->mv_mode2 == MV_PMODE_1MV_HPEL_BILIN) + v->s.quarter_sample = 0; + else + v->s.quarter_sample = 1; + } else v->s.quarter_sample = 1; if ((v->mv_mode == MV_PMODE_INTENSITY_COMP &&