Philipp Schafft
235527192c
Merge branch 'webmKeyFrames'
2016-02-06 17:44:56 +00:00
Marvin Scholz
eecbc647b4
Fix handling of URIs in custom XSL loader
...
There was an error how URIs were handled in our custom XSL loader
that rewrites include URIs to point to admin dir if the include
is not found in the current dir.
The check for the file would not work if the path contains chars
that are usually escaped in URIs, like a space (%20), as we get
a already encoded version of that URI in the loader and did not
decode it before checking the existence of the file.
(Fix #2249 )
2016-01-26 10:13:07 +01:00
Philipp Schafft
6e031962f4
Added missing line termination
2016-01-26 04:42:33 +00:00
Marvin Scholz
e0c386a77f
Replace autogen.sh with a simple wrapper for autoreconf.
...
The autoreconf tool does the same tool detection the older
shell script does, and is now sufficiently widely deployed
to depend on. The new script is what is currently used in
other Xiph.Org projects.
Note this is a change to the new pattern of needing to
invoke ./configure separately after running ./autogen.sh.
(Fix #2254 )
2016-01-25 21:43:22 +01:00
Philipp Schafft
471cbaa60b
Fix: remove tailing dots in URI.
...
This works around the problem that windows ignores tailing dots.
This way you could trick Icecast2 to send a XSLT file as plain text.
Please test.
Closes : #2247
2015-12-24 00:38:11 +00:00
Joseph Wallace
d196e75416
Convert ints used as boolean values into actual bools.
2015-12-19 15:32:37 -05:00
Joseph Wallace
1f6a0a497f
Replace "long long"s with an appropriate type from <stdint.h>
2015-12-19 15:02:33 -05:00
Philipp Schafft
255af9e610
Fix: Moved <mime-types> into <paths>.
...
This moved the <mime-types> setting into <paths>. The code still
supports reading it from the root element but will warn the user
about this.
Also there seems to be no documentation about this setting.
Closes : #2164
2015-12-12 08:17:58 +00:00
Joseph Wallace
de004670c3
Be clearer about ebml_parse_sized_int's sign & endian behavior.
2015-12-01 02:21:24 -05:00
Philipp Schafft
3dd8bdbf40
Feature: display playlist
2015-11-28 18:11:01 +00:00
Philipp Schafft
d3370f3d1c
Cleanup: unify util.c a bit with libshout.
2015-11-28 17:58:18 +00:00
Joseph Wallace
e6cb7e26ee
Move ebml-private structure definitions out of header file.
2015-11-28 12:49:54 -05:00
Joseph Wallace
0d7448efc7
Change buffer-related sizes & indices to size_t or ssize_t, as applicable.
2015-11-28 12:49:45 -05:00
Joseph Wallace
8a09627d05
Fix type of copy_state in EBML parser to an enum variable.
2015-11-28 12:41:46 -05:00
Joseph Wallace
dc263858a4
Additional format_ebml.c comments.
2015-11-28 12:41:46 -05:00
Joseph Wallace
af238d9129
Move MKV element magic values into proper #define constants.
2015-11-28 12:41:46 -05:00
Joseph Wallace
d394a244f0
Bugfix: Cluster test could have read past the end of the input buffer.
...
Move the cluster test inside the space-to-read check with the other tests.
2015-11-28 12:41:46 -05:00
Joseph Wallace
9de8fe483d
Remove spare whitespace on blank lines.
2015-11-28 12:41:46 -05:00
Joseph Wallace
e4258bfad3
Don't wait for video keyframes on audio-only streams.
2015-11-28 12:41:46 -05:00
Joseph Wallace
9cf4ed560c
Probe SimpleBlocks to determine which clusters start with a keyframe.
2015-11-28 12:41:45 -05:00
Joseph Wallace
6e11db5de2
Probe Tracks section of header to identify the video track.
...
We'll sync keyframes on that track next commit.
2015-11-28 12:41:45 -05:00
Joseph Wallace
9899413839
Add parser for bodies of Integer elements.
2015-11-28 12:41:45 -05:00
Joseph Wallace
f461ff6763
Buffer clusters to have time to probe them for metadata, like keyframes.
2015-11-28 12:41:45 -05:00
Joseph Wallace
def5a4cf6c
Implement EBML-aware parser.
...
* Loop over elements in input buffer.
* Most are literally copied with their contents without
inspection into the header or data buffers as appropriate.
* Some only copy the element header, to allow inspecting
children elements.
* Cluster elements are identified and used as sync points.
No probing is done for keyframes *yet*
2015-11-28 12:41:45 -05:00
Joseph Wallace
50c4984c78
Add functions to comprehend EBML tags.
2015-11-28 12:41:45 -05:00
Joseph Wallace
531d060d16
Adjust EBML parser writing protocol.
...
This will allow leaving unparsed data in the input buffer to wait for completion.
2015-11-28 12:41:45 -05:00
Joseph Wallace
13dc880d29
Yield sync point status from ebml_read directly.
...
This simplifies some fragile "was the last chunk a sync point?" logic.
2015-11-28 12:41:45 -05:00
Joseph Wallace
744b66c40e
Make the state-machine nature of the EBML parser more evident.
2015-11-28 12:41:45 -05:00
Joseph Wallace
15e7fc6e4a
Add comments & braces to format_ebml.c.
...
This should help make future changes to the code clearer.
2015-11-28 12:41:45 -05:00
Marvin Scholz
2ff8c50d3b
Makefile: Fix commons include path
2015-11-28 17:15:42 +01:00
Marvin Scholz
b54afbc6be
Correct AC_CONFIG_MACRO_DIRS to AC_CONFIG_MACRO_DIR for compatibility
2015-11-28 17:15:42 +01:00
Marvin Scholz
d16e091e25
Update submodule for more deprecated Makefile INCLUDES fixes
2015-11-28 17:15:42 +01:00
Marvin Scholz
d3c1dafa7e
Change deprecated INCLUDES variable in Makefile
2015-11-28 17:15:42 +01:00
Marvin Scholz
4cd55dc166
Add missing AC_CONFIG_MACRO_DIRS and some configure.ac cleanup
2015-11-28 17:15:42 +01:00
Marvin Scholz
d6fa6891d3
Update m4 to fix a bunch of warnings
2015-11-28 17:15:42 +01:00
Marvin Scholz
95fb449d56
Add config.h.in~ to .gitignore
2015-11-28 17:15:42 +01:00
Philipp Schafft
24bc25ec38
Cleanup: fixed some compiler warnings
2015-11-28 11:30:34 +00:00
Philipp Schafft
d51b9afc49
Cleanup: unify util.h a bit with libshout.
2015-11-28 10:51:50 +00:00
Philipp Schafft
32216013b2
Cleanup: unify util.c a bit with libshout.
2015-11-28 10:44:05 +00:00
Marvin Scholz
2608422ce4
Add Makefile.md explicitly, as it does not match GNU naming
2015-11-28 10:57:43 +01:00
Marvin Scholz
0518157700
Correct configure.in name to configure.ac
2015-11-28 10:57:02 +01:00
Philipp Schafft
85b709da04
Merge branch 'matchfile'
2015-11-23 13:01:23 +00:00
Philipp Schafft
752b2f90fe
Cleanup: mark constant loopup tables read only
2015-11-23 12:47:56 +00:00
Philipp Schafft
a650965cfd
Cleanup: make util_base64_encode() useful for binary data.
2015-11-23 12:47:47 +00:00
Philipp Schafft
de48bdd13f
Cleanup: Removed unused member host vom connection struct
2015-11-23 11:44:14 +00:00
Philipp Schafft
69cf9ad6c2
added <errno.h> as we use errno
2015-11-23 11:41:25 +00:00
Philipp Schafft
b7d0188e1d
Update: updated submodules
2015-11-22 18:52:15 +00:00
Philipp Schafft
c0e895404e
Cleanup: mark key as const (why wasn't it const already?)
2015-11-22 18:47:11 +00:00
Philipp Schafft
b55bae035d
Update: Improved matchfile API
...
This adds support for allow-deny kind of rules with the matchfile API.
See: #2119
2015-11-22 18:47:06 +00:00
Philipp Schafft
d24dda61d0
Cleanup: moved ban and allow file support into generic implementation
...
ban and allow file support has been moved into a generic implementation
that can be re-used by later code such as proxy matching or other
blacklisting.
See: #1959
2015-11-22 18:47:00 +00:00