<div>Hello all, I have integrated decoding with libavformat and libavcodec a basic decoder. It works for H264 encoded video's and also I converted one into avi, it also works.</div><div><br></div><div>But for some reason when I try other formats like .mkv I receive this error: </div>
<div><br></div><div>[h264 @ 05f32a80] no frame!</div><div><br></div><div>I've encoded  the mkv's with x264 so I'm having a hard time understand how it cannot find a frame, it occurs when I call</div><div><br></div>
<div>avcodec_decode_video2(pCodecCtx, pFrame, &gotFrame, &packet);</div><div><br></div><div><br></div><div>What kind of details am I missing, because the different structs seem to have correct data.</div>