Skip to content

Commit

Permalink
Merge pull request ossrs#296 from panda1986/develop
Browse files Browse the repository at this point in the history
支持mp3音频编码
  • Loading branch information
winlinvip committed Jan 20, 2015
2 parents bb1331c + 797c1b0 commit 49330b9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions trunk/src/app/srs_app_ffmpeg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,6 @@ int SrsFFMPEG::initialize_transcode(SrsConfDirective* engine)
}

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) {
ret = ERROR_ENCODER_ABITRATE;
srs_error("invalid abitrate: %d, ret=%d", abitrate, ret);
Expand Down

0 comments on commit 49330b9

Please sign in to comment.