How to render video using SDL

Hi,
I am trying to render video using SDL. I found few samples doing so. When I
tried the video is totally distorted, showing only few rainbow colored dots
with disturbed signal. Can anyone help me to understand how can I achieve
this.

I am attaching the sample code.
http://www.4shared.com/zip/wosqoKkT/HelloSDL.html

Regards
Mustafa Shaik