fffmpeg gets the frame from the rtsp

view story

http://stackoverflow.com – I'm using IP CAMERA and I'm trying to use ffmpeg tutorial in Android and I get the frame and send to bitmap and Works well but when it gets frame from the rtsp somethings wrong frame is corrupted I found this and this but it does not work does anyone has solution? (HowTos)