Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
theora
theora
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 28
    • Issues 28
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Xiph.Org
  • theoratheora
  • Issues
  • #823

Closed
Open
Opened Jan 17, 2006 by WildCoder@WildCoder

[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

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: xiph/theora#823