Merge branch 'develop' of github.com:winlinvip/simple-rtmp-server into develop
This commit is contained in:
commit
664c85cf3d
|
|
@ -181,12 +181,6 @@ int SrsFFMPEG::initialize_transcode(SrsConfDirective* engine)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (acodec != SRS_RTMP_ENCODER_COPY && acodec != SRS_RTMP_ENCODER_NO_AUDIO) {
|
if (acodec != SRS_RTMP_ENCODER_COPY && acodec != SRS_RTMP_ENCODER_NO_AUDIO) {
|
||||||
if (acodec.find(SRS_RTMP_ENCODER_ACODEC) == std::string::npos) {
|
|
||||||
ret = ERROR_ENCODER_ACODEC;
|
|
||||||
srs_error("invalid acodec, must be %s, actual %s, ret=%d",
|
|
||||||
SRS_RTMP_ENCODER_ACODEC, acodec.c_str(), ret);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
if (abitrate <= 0) {
|
if (abitrate <= 0) {
|
||||||
ret = ERROR_ENCODER_ABITRATE;
|
ret = ERROR_ENCODER_ABITRATE;
|
||||||
srs_error("invalid abitrate: %d, ret=%d", abitrate, ret);
|
srs_error("invalid abitrate: %d, ret=%d", abitrate, ret);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user