Index: main/file.c =================================================================== --- main/file.c (revision 320171) +++ main/file.c (working copy) @@ -672,13 +672,14 @@ if (buf == NULL) return NULL; - for (format = AST_FORMAT_AUDIO_MASK + 1; format <= AST_FORMAT_VIDEO_MASK; format = format << 1) { + for (format = AST_FORMAT_H261; format <= AST_FORMAT_VIDEO_MASK; format = format << 1) { int fd; const char *fmt; if (!(chan->nativeformats & format)) continue; fmt = ast_getformatname(format); + ast_log(LOG_DEBUG, "Trying to open video file %s with format %s (0x%08lx).\n", filename, fmt, format); if ( fileexists_core(filename, fmt, preflang, buf, buflen) < 1) /* no valid format */ continue; fd = ast_filehelper(buf, chan, fmt, ACTION_OPEN);