Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2014-10-09 10:41:24 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2ed794ad526d66057a1f3e6869e9510de95e7e8c
2ed794ad
1 parent
9789335d
refine macro, use ffmpeg_stub and ffmpeg_tool, 0.9.224
隐藏空白字符变更
内嵌
并排对比
正在显示
5 个修改的文件
包含
13 行增加
和
6 行删除
trunk/auto/depends.sh
trunk/src/app/srs_app_ffmpeg.cpp
trunk/src/app/srs_app_ffmpeg.hpp
trunk/src/core/srs_core.hpp
trunk/src/main/srs_main_server.cpp
trunk/auto/depends.sh
100644 → 100755
查看文件 @
2ed794a
...
...
@@ -658,12 +658,19 @@ if [ $SRS_FFMPEG_TOOL = YES ]; then
if
[
! -f
${
SRS_OBJS
}
/ffmpeg/bin/ffmpeg
]
;
then
echo
"build ffmpeg-2.1 failed."
;
exit
-1;
fi
fi
# whether compile ffmpeg tool
if
[
$SRS_FFMPEG_TOOL
=
YES
]
;
then
echo
"#define SRS_AUTO_FFMPEG_TOOL"
>>
$SRS_AUTO_HEADERS_H
else
echo
"#undef SRS_AUTO_FFMPEG_TOOL"
>>
$SRS_AUTO_HEADERS_H
fi
# whatever the FFMPEG tools, if transcode and ingest specified,
# srs always compile the FFMPEG tool stub which used to start the FFMPEG process.
if
[
$SRS_FFMPEG_STUB
=
YES
]
;
then
echo
"#define SRS_AUTO_FFMPEG"
>>
$SRS_AUTO_HEADERS_H
echo
"#define SRS_AUTO_FFMPEG
_STUB
"
>>
$SRS_AUTO_HEADERS_H
else
echo
"#undef SRS_AUTO_FFMPEG"
>>
$SRS_AUTO_HEADERS_H
echo
"#undef SRS_AUTO_FFMPEG
_STUB
"
>>
$SRS_AUTO_HEADERS_H
fi
if
[
$SRS_TRANSCODE
=
YES
]
;
then
...
...
trunk/src/app/srs_app_ffmpeg.cpp
查看文件 @
2ed794a
...
...
@@ -36,7 +36,7 @@ using namespace std;
#include <srs_kernel_log.hpp>
#include <srs_app_config.hpp>
#ifdef SRS_AUTO_FFMPEG
#ifdef SRS_AUTO_FFMPEG
_STUB
#define SRS_RTMP_ENCODER_COPY "copy"
#define SRS_RTMP_ENCODER_NO_VIDEO "vn"
...
...
trunk/src/app/srs_app_ffmpeg.hpp
查看文件 @
2ed794a
...
...
@@ -29,7 +29,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <srs_core.hpp>
#ifdef SRS_AUTO_FFMPEG
#ifdef SRS_AUTO_FFMPEG
_STUB
#include <string>
#include <vector>
...
...
trunk/src/core/srs_core.hpp
查看文件 @
2ed794a
...
...
@@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// current release version
#define VERSION_MAJOR "0"
#define VERSION_MINOR "9"
#define VERSION_REVISION "22
3
"
#define VERSION_REVISION "22
4
"
#define RTMP_SIG_SRS_VERSION VERSION_MAJOR"."VERSION_MINOR"."VERSION_REVISION
// server info.
#define RTMP_SIG_SRS_KEY "SRS"
...
...
trunk/src/main/srs_main_server.cpp
查看文件 @
2ed794a
...
...
@@ -125,7 +125,7 @@ void show_macro_features()
srs_warn
(
"compile nginx: off"
);
#endif
#ifdef SRS_AUTO_FFMPEG
#ifdef SRS_AUTO_FFMPEG
_TOOL
srs_trace
(
"compile ffmpeg: on"
);
#else
srs_warn
(
"compile ffmpeg: off"
);
...
...
请
注册
或
登录
后发表评论