Inverted Image

Hi All,

I am using codec H.263 to encode and decode the image.
First i encode the raw data into H.263 and i decode the data using H.263,
But problem is that then picture that i display to use after decoding it,
gets inverted.
Please help me by telling the reason.