[Patch] MVect initialization in decode.c
Hello,
I was trying to compile theora alpha 5. under Windows XP with Visual C Express Edition but when I tried to run dumpvid I got a crash.
I ran it in the debugger and it kept telling me that MVect [1] in decode.c wasn't defined. It took me a while to figure out that it meant not initialized.
so I changed /* set the default motion vector to 0,0 / MVect [0].x = 0; MVect [0].y = 0; LastInterMV.x = 0; to / set the default motion vector to 0,0 */ MVect[0].x = MVect[1].x = MVect[2].x = MVect[3].x = MVect[4].x = MVect[5].x = 0; MVect[0].y = MVect[1].y = MVect[2].y = MVect[3].y = MVect[4].y = MVect[5].y = 0; LastInterMV.x = 0; And it's working like a charm.
Sorry don't know how to enter code in here properly. Hopefuly you can decypher it.
-WildCoder