panda1986

support all acodec. not forced to aac.

@@ -181,15 +181,6 @@ int SrsFFMPEG::initialize_transcode(SrsConfDirective* engine) @@ -181,15 +181,6 @@ 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  
186 - if (acodec.find(SRS_RTMP_ENCODER_ACODEC) == std::string::npos) {  
187 - ret = ERROR_ENCODER_ACODEC;  
188 - srs_error("invalid acodec, must be %s, actual %s, ret=%d",  
189 - SRS_RTMP_ENCODER_ACODEC, acodec.c_str(), ret);  
190 - return ret;  
191 - }  
192 - */  
193 if (abitrate <= 0) { 184 if (abitrate <= 0) {
194 ret = ERROR_ENCODER_ABITRATE; 185 ret = ERROR_ENCODER_ABITRATE;
195 srs_error("invalid abitrate: %d, ret=%d", abitrate, ret); 186 srs_error("invalid abitrate: %d, ret=%d", abitrate, ret);