[FFmpeg-devel] [PATCH] correct seeking to return key frames only, prepare for multi-stream seek in new seeking API

Ivan Schreter schreter
Thu Mar 5 22:48:59 CET 2009

Hi all,

attached is a patch to correct seeking by looking up true key frame 
instead of trusting whatever returned from format.

The search routine is already prepared for multi-stream seeking in a way 
suggested by Michael.

I'm still having too many differences in seek regression, so I'm not 
going to apply this patch as is, I just want to get your opinion & 

One important question: The timestamp coming into the seeking routine: 
Is is PTS or DTS? More naturally, it should be PTS, but currently seems 
to be handled as DTS... So I handled it as DTS as well for now. This is 
possibly incorrect and causing the regression.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: seek.patch
Type: text/x-patch
Size: 8881 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090305/f4c66a48/attachment.bin>

More information about the ffmpeg-devel mailing list