mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
For #1685: Cross build RTC with FFmpeg
This commit is contained in:
parent
1c75a270b3
commit
1e9de0e191
267 changed files with 12603 additions and 1451 deletions
|
@ -164,14 +164,6 @@ av_cold int swr_init(struct SwrContext *s){
|
|||
return AVERROR(EINVAL);
|
||||
}
|
||||
|
||||
if(s-> in_sample_rate <= 0){
|
||||
av_log(s, AV_LOG_ERROR, "Requested input sample rate %d is invalid\n", s->in_sample_rate);
|
||||
return AVERROR(EINVAL);
|
||||
}
|
||||
if(s->out_sample_rate <= 0){
|
||||
av_log(s, AV_LOG_ERROR, "Requested output sample rate %d is invalid\n", s->out_sample_rate);
|
||||
return AVERROR(EINVAL);
|
||||
}
|
||||
s->out.ch_count = s-> user_out_ch_count;
|
||||
s-> in.ch_count = s-> user_in_ch_count;
|
||||
s->used_ch_count = s->user_used_ch_count;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue