stream_filter: smooth: handle "start_time" and "start time" patterns
stream_filter: smooth: rewrite buffering

Gets rid of useless indirect access to chunks.
Uses time as chunk based instead of indexes.
Does not keep chunks on live stream.
stream_filter: smooth: rewrite bw adaptation algorithm

BW measurement must be per stream as receive window/transfert
rate will differ relatively to chunk size. There's no real
way to get an accurate Max BW with such small files, but it
is still accurate to predict the BW for a download of same
size.

A validation cursor is introduced to qualify bitrates.
Cursor evolves within a window of summed download times.
Adds duration to window if > bitrate, and opposite.
  -PROBE_TIME << cursor << PROBE_TIME
Negative values makes harder to select previously unqualified
bitrates.
Stream quality will rank up quality only if next candidate has
filled its own window.
Stream reselection only occurs when cursor <= 0.
In that way, we can tolerate temporary bitrate lowering or increase
and avoid the hiccup reselection problems we had until now.
stream_filter: smooth: pass stream reference when adding new chunks
stream_filter: smooth: dynamically create smoo box
stream_filter: smooth: get rid of es->index->es
stream_filter: smooth: parse chunks using libmp4.h

Gets rid of the checkless and expecting in-order data
read functions.
stream_filter: smooth: merge trackid fix with chunk read

And drop all unused and useless code
stream_filter: smooth: fix endianness creating smoo box
cddb: fix spelling errors in header guards

Signed-off-by: Tristan Matthews <tmatth@videolan.org>
os2: enable gnutls

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Add math for smooth
smooth: missing -lm
stream_filter: smooth: fix leaks (cid #1251056)
demux: avi: remove double chunk lookup
demux: avi: fix non fixed sample size ADTS/AAC (fix #12727)
ASCII Art: fix invalid video format, crash in scaling
psychedelic: fix scaling crash due to invalid video format
mux: mp4: fix flags variable size (cid #1251045)
demux: mp4: check GetPTSDelta result (cid #1251043)