manas lenka wrote:
> Hello,
> 
> But I am facing a PROBLEM
> Actually what I am trying is :
> I am modifying the deocde demo so that it can play .avi file.
> So I added a new Thread ("LoaderThx") to the decode demo.
> This thread separates the audio and video stream from the .avi file and
> put them in audio and video queues.
> I compiled the modified code successfully. bUt while executing I am getting
> "Alignment trap: decode (1178) PC=0x4021cddc Instr=0xe5901004
> Address=0x0100003d FSR 0x001"
> 
> and subsequently
>  
> "Segmentation error."
> 
> I am unable to figure out what is the cause of this alignment trap..
> Can u  tell me what probably the cause..

The ARM has strict aligment rules, you cannot access a 16/32bit value from any
address, it has to be 2 or 4 bytes aligned. If you took some AVI reading code
that worked on the (X86) PC where the aligment can be anything, then you have to
check all the data access carefully.



_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to