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:
Dragos Oancea 2017-07-21 12:10:25 -04:00
parent a1740fb600
commit 6bac8ddcc3
1 changed files with 3 additions and 0 deletions

View File

@ -184,6 +184,9 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_native_file_load)
uint32_t 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);
}