--- class_video.inc.bak.php	Wed Jul 12 21:50:46 2006
+++ class_video.inc	Wed Jul 12 23:06:21 2006
@@ -59,6 +59,10 @@ function _class_video_create(&$node, &$f
     global $acidfree_types;
     $mime = 'image/jpeg';
     $ext = 'jpg';
+    
+    $node->width = !isset($node->width)?variable_get('acidfree_default_video_width', 320):$node->width;
+    $node->height = !isset($node->height)?variable_get('acidfree_default_video_height', 240):$node->height;
+    
     $node->thumb = acidfree_add_file($node, acidfree_mktmpfile('videosmall'), "{$node->nid}_thumb.{$ext}", $mime, true);
     $method = variable_get('acidfree_video_thumbnailer', 'none');
     $tfile = file_check_upload('userthumb');
@@ -155,12 +159,12 @@ function _class_video_form($op, &$node) 
             $form['width'] = array(
                     '#type' => 'textfield',
                     '#title' => t('Video width'),
-                    '#default_value' => 320,
+                    '#default_value' => variable_get('acidfree_default_video_width', 320),
                 );
             $form['height'] = array(
                     '#type' => 'textfield',
                     '#title' => t('Video height'),
-                    '#default_value' => 240,
+                    '#default_value' => variable_get('acidfree_default_video_height', 240),
                 );
             break;
         case 'user':
@@ -223,6 +227,18 @@ function _class_video_manipulation_optio
             '#default_value' => $value,
             '#options' => $options,
         );
+    $form['video_manip']['acidfree_default_video_width'] = array(
+            '#type' => 'textfield',
+            '#title' => t('Default width'),
+            '#default_value' => variable_get('acidfree_default_video_width', 320),
+            '#description' => t('Default video width')
+        );
+    $form['video_manip']['acidfree_default_video_height'] = array(
+            '#type' => 'textfield',
+            '#title' => t('Default height'),
+            '#default_value' => variable_get('acidfree_default_video_height', 240),
+            '#description' => t('Default video height')
+        );            
     if ($value == 'mplayer') {
         $name = 'acidfree_path_to_mplayer';
         $mplayer_path = variable_get($name, '/usr/bin/mplayer');
