Hi! I am writing my own rtsp video player using libavformat and libavcodec. I do not want to display any artifacts on the video, so, I have to discard any corrupted frame. How can I detect that frame is corrupted and how can I skip all dependent frames?