<div dir="ltr"><div class="gmail_quote"><div dir="ltr">Dear all,
<div><br></div><div>I am implementing a fast seeking with libavformat and libavcodec. For this I want to do something with possibly large distance between two sequential keyframes. In short, my plan was to cache some decoded P-frames and then substitute them as pseudo keyframes on-flight when needed. Let's say the GOP size is 250, then I can cache 5-10 intermediate P-frames to speedup seeking.</div><div><br></div><div>My question is: is it possible to inject such pre-decoded frame into the codec and start decoding from it and not from the original keyframe? Or am I insane?  </div><div><br></div><div>Best regards,</div><div>Vadim</div></div></div>
</div>