aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/dsputil.c
diff options
context:
space:
mode:
authorRoman Shaposhnik <roman@shaposhnik.org>2009-02-19 00:28:08 +0000
committerRoman Shaposhnik <roman@shaposhnik.org>2009-02-19 00:28:08 +0000
commit3899eb2f65ddcda27e352edb760e181cb11cbc76 (patch)
tree9e8857bf3f392b9da90c3e7f7c6999a0bc3b9490 /libavcodec/dsputil.c
parentd52b39c79c015793c7ed3cde84fc9c98fbf527b9 (diff)
downloadffmpeg-3899eb2f65ddcda27e352edb760e181cb11cbc76.tar.gz
Making the arrays accomodate an extra intra 8x8 cmp function
Originally committed as revision 17446 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dsputil.c')
-rw-r--r--libavcodec/dsputil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c
index b33fb501b9..71a5b946e4 100644
--- a/libavcodec/dsputil.c
+++ b/libavcodec/dsputil.c
@@ -3425,9 +3425,9 @@ static int zero_cmp(void *s, uint8_t *a, uint8_t *b, int stride, int h){
void ff_set_cmp(DSPContext* c, me_cmp_func *cmp, int type){
int i;
- memset(cmp, 0, sizeof(void*)*5);
+ memset(cmp, 0, sizeof(void*)*6);
- for(i=0; i<5; i++){
+ for(i=0; i<6; i++){
switch(type&0xFF){
case FF_CMP_SAD:
cmp[i]= c->sad[i];