BUG in bgr_to_yv12_mmx

"Konstantin V. Lunin" <[email protected]> Fri, 1 Oct 2004 17:26:49 +0300
Newsgroups gmane.comp.video.xvid.user
Organization Elvees
Message-ID <[email protected]>
Hello xvid-users,

I try to compress simple image (352x288 RGB24) in loop.

Read from location 0x014F2000 caused an access violation.
        Params: pData=0x014B9C00 : 0x014F2000 (begin + img_len)

eax=000001c0 ebx=01da513f ecx=01daf2ff edx=fffffc40 esi=01d81fbe edi=014f1ffa
eip=01a44d1a esp=015fea94 ebp=00000002 iopl=0         nv up ei pl nz na pe nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00010202
xvidcore!bgr_to_yv12_mmx+0xca:
01a44d1a 0f6e4f03      movd mm1,dword ptr [edi+0x3] ds:0023:014f1ffd=????????

i dont understant.. what is wrong?
when i copy with buffer to an other one like..
   pData = (BYTE*)malloc(BufferLen);
   CopyMemory(m_pData, pBuffer, BufferLen);
it ok.

i dont know asm yet...

Now i simply exclude this function:
bgr_to_yv12   = bgr_to_yv12_c; //bgr_to_yv12_mmx;

Can any one help to explain this bug.

-- 
Best regards,
 Konstantin                          mailto:[email protected]