|
Lines 2437-2442
static switch_status_t av_file_open(switch_file_handle_t *handle, const char *pa
Link Here
|
| 2437 |
#endif |
2437 |
#endif |
| 2438 |
const char *issplit = 0; |
2438 |
const char *issplit = 0; |
| 2439 |
|
2439 |
|
|
|
2440 |
#if (LIBAVFORMAT_VERSION_MAJOR < LIBAVFORMAT_V) |
| 2441 |
if (fmt->audio_codec == AV_CODEC_ID_OPUS) { |
| 2442 |
#else |
| 2443 |
if (audio_codec == AV_CODEC_ID_OPUS) { |
| 2444 |
#endif |
| 2445 |
/* Both FFmpeg Opus encoders accept 48 kHz; the native one requires it. */ |
| 2446 |
handle->samplerate = handle->mm.samplerate = 48000; |
| 2447 |
} |
| 2448 |
|
| 2440 |
context->audio_st[0].channels = handle->channels; |
2449 |
context->audio_st[0].channels = handle->channels; |
| 2441 |
context->audio_st[1].sample_rate = handle->samplerate; |
2450 |
context->audio_st[1].sample_rate = handle->samplerate; |
| 2442 |
|
2451 |
|
| 2443 |
- |
|
|