[FFmpeg-devel] [PATCH] OGG seeking and timestamp

Yvan Labadie ylabadie
Wed Nov 19 10:43:23 CET 2008


Hi again,

I needed to recover exact packets, so on the first read I save all 
packets with available timestamp value, then when I need I make an 
av_seek_frame to these values in order to recover the corresponding 
packet, but sometimes it worked and sometimes it sent me an other packet 
(which is the next packet in fact).

and worst, sometimes it was simply impossible to seek to this same 
timestamp, it returned the packet of the next timestamp :s

So I digg in... and I made a modification so when we make a seek to a 
saved timestamp we always recover the same packet as the one which 
generated this timestamp!

I join a patch if it can help!

NB : Sorry for the mail in libav* user I had some problems with my email 
and  ffmpeg-devel subscription...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch_ogg.diff
Type: text/x-patch
Size: 5972 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20081119/e387d3f9/attachment.bin>



More information about the ffmpeg-devel mailing list