]> git.sesse.net Git - vlc/commit
livehttp: follow draf on segment duration
authorIlkka Ollakka <ileoo@videolan.org>
Thu, 24 Jan 2013 15:06:36 +0000 (17:06 +0200)
committerIlkka Ollakka <ileoo@videolan.org>
Thu, 24 Jan 2013 18:18:37 +0000 (20:18 +0200)
commit3debbab958322f624944f0855f8c9c56321c80ca
tree33211e546b3d7e44944cb742b54d7dd7f2bc326d
parent9c38916549e1608b465926f5c0a1c59e8600a6de
livehttp: follow draf on segment duration

Currently Draft on HTTP live streaming says that segment should be upto
TAGETDURATION length. This change makes sure segments are upto
seglen+10% length, it doesn't mind if they are left quite a lot shorter
(like 10s keyint and 10s seglen can create segment with 2 sec long if
next segment is 10s).

Livehttp-module buffers blocks until header-block turns up. Then it
will check if current buffer would fit on current segment without making
it overflow, or starts new segment if it goes over.
modules/access_output/livehttp.c