[Ffmpeg-devel] [PATCH] http seeking

Ronald S. Bultje rbultje
Tue Dec 19 04:19:26 CET 2006


Hi,

after my previous length patch, this one should be fairly
straightforward. Also fixes a bug (yay for testing partial patches :-) )
in http length parsing from my previous patch.

improvements over previous:
- this one can recover after a failed seek by continuing on the old
connection context
- this one doesn't use multiple location arrays, but a redirect counter,
as proposed by Michael. The location in HTTPContext remains, because we
need it to re-setup the connection after a seek.

Bugs remaining (probably not related to the patch):
- first mp3 seek is very slow. After, it's ok
- mpg seeking appears to not seek linearly (?)
- it doesn't work for all formats, several formats give me a failed
assertion or a crash:

vorbis:
Seek to 64% ( 0:01:08) of total duration ( 0:01:47)
[vorbis @ 0x83cfb50]floor0 dec: booknumber too high!
[vorbis @ 0x83cfb50]Not a Vorbis I audio packet.
[vorbis @ 0x83cfb50]floor0 dec: booknumber too high!
Fatal signal: Segmentation Fault (SDL Parachute Deployed)

one mp3:
Seek to 79% ( 0:00:03) of total duration ( 0:00:05)
Content-Range: bytes 1208384-7129087/7129088
ffplay: utils.c:1314: av_gen_search: Assertion `ts !=
0x8000000000000000LL' failed.

I hope this is still partly useful...

Cheers,
Ronald
-------------- next part --------------
A non-text attachment was scrubbed...
Name: http-seek.patch
Type: text/x-patch
Size: 7162 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20061218/4896673c/attachment.bin>



More information about the ffmpeg-devel mailing list