aboutsummaryrefslogtreecommitdiffstats
path: root/channel.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-07 17:54:22 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-07 17:54:22 +0000
commitd1d90f47fd87ec50db7aa5badcc996854d93c0bf (patch)
tree34e09d3fba69a40757b42b46d8656a74744e6c7b /channel.c
parentcde8c70439d39f407bf73a892ef09caf81bb1899 (diff)
Add support for H.264 with SIP and recording
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7855 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rw-r--r--channel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/channel.c b/channel.c
index d35caf53d..3062f6bcc 100644
--- a/channel.c
+++ b/channel.c
@@ -2305,6 +2305,9 @@ static int set_format(struct ast_channel *chan, int fmt, int *rawformat, int *fo
int native;
int res;
+ /* Make sure we only consider audio */
+ fmt &= AST_FORMAT_AUDIO_MASK;
+
native = chan->nativeformats;
/* Find a translation path from the native format to one of the desired formats */
if (!direction)