]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix MODFORM-39
authorBrian West <brian@freeswitch.org>
Tue, 16 Mar 2010 03:45:56 +0000 (03:45 +0000)
committerBrian West <brian@freeswitch.org>
Tue, 16 Mar 2010 03:45:56 +0000 (03:45 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16999 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/formats/mod_sndfile/mod_sndfile.c

index 305edb20e0116bebf73c72e4ed375168522253ba..020943ce5af7d3639cece48f6cce716c1a426589 100644 (file)
@@ -145,6 +145,7 @@ static switch_status_t sndfile_file_open(switch_file_handle_t *handle, const cha
                context->sfinfo.samplerate = 8000;
        } else if (!strcmp(ext, "adpcm")) {
                context->sfinfo.format = SF_FORMAT_WAV | SF_FORMAT_IMA_ADPCM;
+               context->sfinfo.channels = 1;
                context->sfinfo.samplerate = 8000;
        }