mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-15 05:08:26 +00:00
Merge pull request #1350 in FS/freeswitch from ~DRAGOS_OANCEA/freeswitch-dragos:bugfix/FS-10529-remove_opus_extension to master
* commit '6bac8ddcc3ab7a2626750a8befe5f8459b2c9d9a': FS-10529: [mod_native_file] do not register "opus" file extension (needs ogg/opus support). Use encoded_bytes_per_packet to skip other extensions too.
This commit is contained in:
commit
86910efa34
@ -184,6 +184,9 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_native_file_load)
|
|||||||
uint32_t x;
|
uint32_t x;
|
||||||
|
|
||||||
for (x = 0; x < num_codecs; x++) {
|
for (x = 0; x < num_codecs; x++) {
|
||||||
|
if (codecs[x]->encoded_bytes_per_packet == 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
supported_formats[x] = switch_core_strdup(pool, codecs[x]->iananame);
|
supported_formats[x] = switch_core_strdup(pool, codecs[x]->iananame);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user