Hi I decode video using this function: avcodec_decode_video( m_vDec, m_decodedPicture, &got_picture, (uint8_t*) samplePtr, sampleLength ); I want to save each m_decodedPicture to an image file. Can you tell which function I should use for this? Thanks a lot! mark