I hope someone can help me with this. I'm using ffplay to decode h264 streams and I want to make sure that the first frame which is decoded by avcodec_decode_video() is a keyframe. How can I make sure that non-keyframes are not reaching avcodec_decode_video() until the first keyframe is decoded ? Klaas-Pieter Vlieg