panda1986

Update srs_app_ffmpeg.cpp

srs develop 新增支持mp3转码后,需要添加新的acodec-libmp3lame.所以去掉srs_app_ffmpeg.cpp中对acodec的判断
@@ -181,12 +181,15 @@ int SrsFFMPEG::initialize_transcode(SrsConfDirective* engine) @@ -181,12 +181,15 @@ int SrsFFMPEG::initialize_transcode(SrsConfDirective* engine)
181 } 181 }
182 182
183 if (acodec != SRS_RTMP_ENCODER_COPY && acodec != SRS_RTMP_ENCODER_NO_AUDIO) { 183 if (acodec != SRS_RTMP_ENCODER_COPY && acodec != SRS_RTMP_ENCODER_NO_AUDIO) {
  184 + /*
  185 + // add new acodec libmp3lame
184 if (acodec.find(SRS_RTMP_ENCODER_ACODEC) == std::string::npos) { 186 if (acodec.find(SRS_RTMP_ENCODER_ACODEC) == std::string::npos) {
185 ret = ERROR_ENCODER_ACODEC; 187 ret = ERROR_ENCODER_ACODEC;
186 srs_error("invalid acodec, must be %s, actual %s, ret=%d", 188 srs_error("invalid acodec, must be %s, actual %s, ret=%d",
187 SRS_RTMP_ENCODER_ACODEC, acodec.c_str(), ret); 189 SRS_RTMP_ENCODER_ACODEC, acodec.c_str(), ret);
188 return ret; 190 return ret;
189 } 191 }
  192 + */
190 if (abitrate <= 0) { 193 if (abitrate <= 0) {
191 ret = ERROR_ENCODER_ABITRATE; 194 ret = ERROR_ENCODER_ABITRATE;
192 srs_error("invalid abitrate: %d, ret=%d", abitrate, ret); 195 srs_error("invalid abitrate: %d, ret=%d", abitrate, ret);