diff options
-rw-r--r-- | main/file.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/file.c b/main/file.c index 1bef768ba..2f1789481 100644 --- a/main/file.c +++ b/main/file.c @@ -379,7 +379,8 @@ static int ast_filehelper(const char *filename, const void *arg2, const char *fm struct ast_filestream *s; if ( !(chan->writeformat & f->format) && - !(f->format & AST_FORMAT_AUDIO_MASK && fmt)) { + !((f->format & AST_FORMAT_AUDIO_MASK && fmt) || + (f->format & AST_FORMAT_VIDEO_MASK && fmt))) { ast_free(fn); continue; /* not a supported format */ } |