Index: main/file.c =================================================================== --- main/file.c (revision 139770) +++ main/file.c (working copy) @@ -379,7 +379,8 @@ 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 */ }