I write the encoding result into a .h264 file,but when I play it I find that the top half shows the squashed image while the bottom half is all black.I debug and make sure 'width' and 'height' are not changed wrongly before calling encode function.So why?