diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2006-09-12 04:19:07 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2006-09-12 04:19:07 +0000 |
commit | c8868640c139fbec53c4fd76a416ed732405f4a2 (patch) | |
tree | 1c05f67ecb884a2ed3663fa7d462565014c0e557 | |
parent | b116cc7f95b236dce84ed197ba98fb40945a70be (diff) | |
download | ffmpeg-streaming-c8868640c139fbec53c4fd76a416ed732405f4a2.zip ffmpeg-streaming-c8868640c139fbec53c4fd76a416ed732405f4a2.tar.gz |
Use h264_chroma funcs in B-frames MC too
Originally committed as revision 6235 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/vc1.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c index cb43dd1..c84f0c5 100644 --- a/libavcodec/vc1.c +++ b/libavcodec/vc1.c @@ -2075,8 +2075,10 @@ static void vc1_interp_mc(VC1Context *v) if(s->flags & CODEC_FLAG_GRAY) return; /* Chroma MC always uses qpel blilinear */ uvdxy = ((uvmy & 3) << 2) | (uvmx & 3); - dsp->avg_qpel_pixels_tab[1][uvdxy](s->dest[1], srcU, s->uvlinesize); - dsp->avg_qpel_pixels_tab[1][uvdxy](s->dest[2], srcV, s->uvlinesize); + uvmx = (uvmx&3)<<1; + uvmy = (uvmy&3)<<1; + dsp->avg_h264_chroma_pixels_tab[0](s->dest[1], srcU, s->uvlinesize, 8, uvmx, uvmy); + dsp->avg_h264_chroma_pixels_tab[0](s->dest[2], srcV, s->uvlinesize, 8, uvmx, uvmy); } static always_inline int scale_mv(int value, int bfrac, int inv, int qs) |