Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
audiowmark
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
audiowmark
Commits
12d320ac
Commit
12d320ac
authored
Jul 22, 2020
by
Stefan Westerfeld
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support building without ffmpeg libs.
Signed-off-by:
Stefan Westerfeld
<
stefan@space.twc.de
>
parent
c2dfd2e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
8 deletions
+31
-8
Makefile.am
src/Makefile.am
+10
-5
hls.cc
src/hls.cc
+21
-3
No files found.
src/Makefile.am
View file @
12d320ac
...
...
@@ -5,14 +5,14 @@ COMMON_SRC = utils.hh utils.cc convcode.hh convcode.cc random.hh random.cc wavda
audiostream.cc audiostream.hh sfinputstream.cc sfinputstream.hh stdoutwavoutputstream.cc stdoutwavoutputstream.hh
\
sfoutputstream.cc sfoutputstream.hh rawinputstream.cc rawinputstream.hh rawoutputstream.cc rawoutputstream.hh
\
rawconverter.cc rawconverter.hh mp3inputstream.cc mp3inputstream.hh wmcommon.cc wmcommon.hh fft.cc fft.hh
\
limiter.cc limiter.hh shortcode.cc shortcode.hh mpegts.cc mpegts.hh hls
outputstream.cc hlsoutputstream
.hh
\
audiobuffer.hh
limiter.cc limiter.hh shortcode.cc shortcode.hh mpegts.cc mpegts.hh hls
.cc hls.hh audiobuffer
.hh
\
wmget.cc wmadd.cc
COMMON_LIBS
=
$(SNDFILE_LIBS)
$(FFTW_LIBS)
$(LIBGCRYPT_LIBS)
$(LIBMPG123_LIBS)
$(FFMPEG_LIBS)
audiowmark_SOURCES
=
audiowmark.cc
wmget.cc wmadd.cc hls.cc
$(COMMON_SRC)
audiowmark_SOURCES
=
audiowmark.cc
$(COMMON_SRC)
audiowmark_LDFLAGS
=
$(COMMON_LIBS)
noinst_PROGRAMS
=
testconvcode testrandom testmp3 teststream testlimiter testshortcode testmpegts
testhls
noinst_PROGRAMS
=
testconvcode testrandom testmp3 teststream testlimiter testshortcode testmpegts
testconvcode_SOURCES
=
testconvcode.cc
$(COMMON_SRC)
testconvcode_LDFLAGS
=
$(COMMON_LIBS)
...
...
@@ -35,5 +35,10 @@ testshortcode_LDFLAGS = $(COMMON_LIBS)
testmpegts_SOURCES
=
testmpegts.cc
$(COMMON_SRC)
testmpegts_LDFLAGS
=
$(COMMON_LIBS)
testhls_SOURCES
=
testhls.cc wmadd.cc hls.cc
$(COMMON_SRC)
if
COND_WITH_FFMPEG
COMMON_SRC
+=
hlsoutputstream.cc hlsoutputstream.hh
noinst_PROGRAMS
+=
testhls
testhls_SOURCES
=
testhls.cc
$(COMMON_SRC)
testhls_LDFLAGS
=
$(COMMON_LIBS)
endif
src/hls.cc
View file @
12d320ac
...
...
@@ -26,17 +26,36 @@
#include "utils.hh"
#include "mpegts.hh"
#include "sfinputstream.hh"
#include "hlsoutputstream.hh"
#include "sfoutputstream.hh"
#include "wmcommon.hh"
#include "wavdata.hh"
#include "config.h"
using
std
::
string
;
using
std
::
vector
;
using
std
::
regex
;
using
std
::
map
;
using
std
::
min
;
#if !HAVE_FFMPEG
int
hls_prepare
(
const
string
&
in_dir
,
const
string
&
out_dir
,
const
string
&
filename
,
const
string
&
audio_master
)
{
error
(
"audiowmark: hls support is not available in this build of audiowmark
\n
"
);
return
1
;
}
int
hls_add
(
const
string
&
infile
,
const
string
&
outfile
,
const
string
&
bits
)
{
error
(
"audiowmark: hls support is not available in this build of audiowmark
\n
"
);
return
1
;
}
#else
#include "hlsoutputstream.hh"
static
bool
file_exists
(
const
string
&
filename
)
{
...
...
@@ -548,5 +567,4 @@ hls_prepare (const string& in_dir, const string& out_dir, const string& filename
info
(
"Time: %d:%02d
\n
"
,
orig_seconds
/
60
,
orig_seconds
%
60
);
return
0
;
}
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment