From 2d1c8541460c2b63d46eb1a278adacee14a55556 Mon Sep 17 00:00:00 2001 From: "luz.paz" Date: Wed, 7 Feb 2018 10:54:59 -0500 Subject: [PATCH] Misc. typos Found via `codespell -q 3 --skip="./gtk/po` --- gtk/src/callbacks.c | 4 ++-- gtk/src/ghb-dvd.c | 4 ++-- gtk/src/ghb.m4 | 2 +- gtk/src/plist.c | 2 +- gtk/src/presets.c | 2 +- gtk/src/queuehandler.c | 6 +++--- gtk/src/renderer_button.c | 2 +- gtk/src/subtitlehandler.c | 2 +- libhb/audio_remap.h | 2 +- libhb/comb_detect.c | 4 ++-- libhb/common.c | 4 ++-- libhb/common.h | 2 +- libhb/deccc608sub.c | 4 ++-- libhb/decomb.c | 2 +- libhb/decpgssub.c | 2 +- libhb/decsrtsub.c | 4 ++-- libhb/decssasub.h | 4 ++-- libhb/demuxmpeg.c | 2 +- libhb/dvdnav.c | 2 +- libhb/eedi2.c | 2 +- libhb/enc_qsv.c | 2 +- libhb/encavcodecaudio.c | 2 +- libhb/enctheora.c | 2 +- libhb/encx264.c | 6 +++--- libhb/encx265.c | 2 +- libhb/hb.c | 2 +- libhb/internal.h | 4 ++-- libhb/nal_units.h | 4 ++-- libhb/plist.c | 2 +- libhb/preset.c | 4 ++-- libhb/preset.h | 2 +- libhb/qsv_common.c | 2 +- libhb/qsv_filter.c | 2 +- libhb/qsv_libav.h | 4 ++-- libhb/reader.c | 2 +- libhb/rendersub.c | 2 +- libhb/stream.c | 4 ++-- libhb/sync.c | 2 +- libhb/vfr.c | 4 ++-- libhb/work.c | 4 ++-- .../Versions/A/Headers/GrowlApplicationBridge.h | 2 +- macosx/HBAdvancedController.m | 4 ++-- macosx/HBController.m | 2 +- macosx/HBDockTile.h | 2 +- macosx/HBHUD.h | 2 +- macosx/HBOutputRedirect.m | 2 +- macosx/HBPresetsManager.h | 2 +- macosx/HBPresetsManager.m | 2 +- macosx/HBQueueController.m | 2 +- macosx/HBQueueOutlineView.h | 2 +- macosx/HBSubtitles.m | 2 +- macosx/HBVideo.m | 2 +- macosx/NSWindow+HBAdditions.h | 2 +- macosx/NSWindow+HBAdditions.m | 2 +- macosx/Sparkle.framework/Versions/A/Headers/SUUpdater.h | 2 +- macosx/module.defs | 4 ++-- pkg/linux/debian/copyright | 4 ++-- scripts/tag-release.sh | 2 +- .../Interop/Helpers/InteropUtilities.cs | 2 +- .../Services/Logging/LogService.cs | 4 ++-- win/CS/HandBrakeTools/Program.cs | 2 +- win/CS/HandBrakeWPF/App.xaml.cs | 4 ++-- win/CS/HandBrakeWPF/Controls/AlertPanel.xaml.cs | 8 ++++---- win/CS/HandBrakeWPF/Converters/BooleanConverter.cs | 2 +- .../Converters/BooleanToHiddenVisibilityConverter.cs | 2 +- .../Converters/BooleanToVisibilityConverter.cs | 2 +- win/CS/HandBrakeWPF/Model/Audio/AudioBehaviours.cs | 2 +- win/CS/HandBrakeWPF/Model/UpdateCheckInformation.cs | 4 ++-- win/CS/HandBrakeWPF/Properties/Resources.Designer.cs | 6 +++--- win/CS/HandBrakeWPF/Properties/Resources.resx | 6 +++--- .../HandBrakeWPF/Properties/ResourcesTooltips.Designer.cs | 2 +- win/CS/HandBrakeWPF/Properties/ResourcesTooltips.resx | 2 +- win/CS/HandBrakeWPF/Services/Encode/EncodeBase.cs | 2 +- win/CS/HandBrakeWPF/Services/Encode/Interfaces/IEncode.cs | 6 +++--- .../Services/Interfaces/IUserSettingService.cs | 4 ++-- win/CS/HandBrakeWPF/Services/PrePostActionService.cs | 2 +- win/CS/HandBrakeWPF/Services/Presets/PresetService.cs | 4 ++-- win/CS/HandBrakeWPF/Services/Queue/QueueProcessor.cs | 2 +- win/CS/HandBrakeWPF/Services/Scan/Interfaces/IScan.cs | 6 +++--- win/CS/HandBrakeWPF/Services/Scan/Model/Subtitle.cs | 2 +- win/CS/HandBrakeWPF/Services/UserSettingService.cs | 4 ++-- win/CS/HandBrakeWPF/UserSettingConstants.cs | 2 +- win/CS/HandBrakeWPF/Utilities/GeneralUtilities.cs | 4 ++-- win/CS/HandBrakeWPF/Utilities/Input/ChapterImporterCsv.cs | 2 +- win/CS/HandBrakeWPF/Utilities/Portable.cs | 2 +- win/CS/HandBrakeWPF/Utilities/Win32.cs | 4 ++-- win/CS/HandBrakeWPF/Utilities/Win7.cs | 2 +- win/CS/HandBrakeWPF/ViewModels/ChaptersViewModel.cs | 2 +- win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs | 2 +- .../HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs | 4 ++-- win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs | 2 +- win/CS/HandBrakeWPF/ViewModels/ViewModelBase.cs | 2 +- 92 files changed, 133 insertions(+), 133 deletions(-) diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index ed52ac358..79b6f518a 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -2197,7 +2197,7 @@ ghb_set_title_settings(signal_user_data_t *ud, GhbValue *settings) ghb_dict_set_int(settings, "scale_width", title->geometry.width - crop[2] - crop[3]); - // If anamorphic or keep_aspect, the hight will + // If anamorphic or keep_aspect, the height will // be automatically calculated gboolean keep_aspect; gint pic_par; @@ -4431,7 +4431,7 @@ chapter_edited_cb( gtk_tree_path_next(treepath); // When a cell has been edited, I want to advance to the - // next cell and start editing it automaitcally. + // next cell and start editing it automatically. // Unfortunately, we may not be in a state here where // editing is allowed. This happens when the user selects // a new cell with the mouse instead of just hitting enter. diff --git a/gtk/src/ghb-dvd.c b/gtk/src/ghb-dvd.c index dca919c2d..ffc393e6f 100644 --- a/gtk/src/ghb-dvd.c +++ b/gtk/src/ghb-dvd.c @@ -251,7 +251,7 @@ anchor: if (type != 2) /* TAG_ID_AVDP */ goto found; - /* get desriptor list address and block count */ + /* get descriptor list address and block count */ count = le32_to_cpu(vd->type.anchor.length) / bs; loc = le32_to_cpu(vd->type.anchor.location); @@ -370,7 +370,7 @@ ghb_dvd_set_current(const gchar *name, signal_user_data_t *ud) { // I could go through the trouble to scan the connected drives and // verify that this device is connected and is a DVD. But I don't - // think its neccessary. + // think its necessary. ud->current_dvd_device = resolved; } else diff --git a/gtk/src/ghb.m4 b/gtk/src/ghb.m4 index b11978f89..3d8c892f8 100644 --- a/gtk/src/ghb.m4 +++ b/gtk/src/ghb.m4 @@ -3856,7 +3856,7 @@ settings will result in better quality or smaller files. GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK Tune settings to optimize for common scenarios. -This can improve effeciency for particular source characteristics or set +This can improve efficiency for particular source characteristics or set characteristics of the output file. Changes will be applied after the preset but before all other parameters. diff --git a/gtk/src/plist.c b/gtk/src/plist.c index 81956a9c4..571907988 100644 --- a/gtk/src/plist.c +++ b/gtk/src/plist.c @@ -511,7 +511,7 @@ gval_write(FILE *file, GhbValue *gval) } else { - // Try to make anything thats unrecognized into a string + // Try to make anything that's unrecognized into a string g_warning("Unhandled data type %d", gtype); } } diff --git a/gtk/src/presets.c b/gtk/src/presets.c index feceb3e54..32e9782de 100644 --- a/gtk/src/presets.c +++ b/gtk/src/presets.c @@ -1822,7 +1822,7 @@ ghb_presets_load(signal_user_data_t *ud) { ghb_log("Failed to read backup presets, using defaults..."); hb_presets_builtin_update(); - // Don't store defaults unless the user explicitely saves + // Don't store defaults unless the user explicitly saves // a new preset. This would overwrite the presets file // that was generated by a newer version of HandBrake. } diff --git a/gtk/src/queuehandler.c b/gtk/src/queuehandler.c index ed3721ef0..75fe204d2 100644 --- a/gtk/src/queuehandler.c +++ b/gtk/src/queuehandler.c @@ -1717,7 +1717,7 @@ title_dest_file_cb(GtkWidget *widget, signal_user_data_t *ud) // Check if changing the destination file name resolves // a file name conflict. Enable selection if so. - // Disable selection if it creates a confict!!! + // Disable selection if it creates a conflict!!! gboolean can_select; can_select = title_multiple_can_select(ud->settings_array, index); ghb_dict_set_bool(settings, "title_selected", can_select); @@ -1753,7 +1753,7 @@ title_dest_dir_cb(GtkWidget *widget, signal_user_data_t *ud) // Check if changing the destination file name resolves // a file name conflict. Enable selection if so. - // Disable selection if it creates a confict!!! + // Disable selection if it creates a conflict!!! gboolean can_select; can_select = title_multiple_can_select(ud->settings_array, index); ghb_dict_set_bool(settings, "title_selected", can_select); @@ -2142,7 +2142,7 @@ queue_drag_motion_cb( pos = GTK_TREE_VIEW_DROP_BEFORE; if (pos == GTK_TREE_VIEW_DROP_INTO_OR_AFTER) pos = GTK_TREE_VIEW_DROP_AFTER; - // Don't allow droping int child items + // Don't allow dropping int child items if (gtk_tree_path_get_depth(path) > 1) { gtk_tree_path_up(path); diff --git a/gtk/src/renderer_button.c b/gtk/src/renderer_button.c index dd427d708..196227b66 100644 --- a/gtk/src/renderer_button.c +++ b/gtk/src/renderer_button.c @@ -159,7 +159,7 @@ static void custom_cell_renderer_button_finalize (GObject *object) { /* - If you need to do anyting with the renderer button ... + If you need to do anything with the renderer button ... CustomCellRendererProgress *cellrendererbutton = CUSTOM_CELL_RENDERER_BUTTON(object); */ diff --git a/gtk/src/subtitlehandler.c b/gtk/src/subtitlehandler.c index 85108cfb8..3cf44689f 100644 --- a/gtk/src/subtitlehandler.c +++ b/gtk/src/subtitlehandler.c @@ -318,7 +318,7 @@ subtitle_add_to_settings(GhbValue *settings, GhbValue *subsettings) ghb_array_append(subtitle_list, subsettings); - // Check consistancy of exclusive flags + // Check consistency of exclusive flags count = ghb_array_len(subtitle_list); if (burn) subtitle_exclusive_burn_settings(settings, count-1); diff --git a/libhb/audio_remap.h b/libhb/audio_remap.h index f0a1f3494..5636656f4 100644 --- a/libhb/audio_remap.h +++ b/libhb/audio_remap.h @@ -82,7 +82,7 @@ void hb_audio_remap_free(hb_audio_remap_t *remap); /* * Remap audio between 2 different channel orders, using the settings specified - * in the remap paremeter. Remapping is only done when necessary. + * in the remap parameter. Remapping is only done when necessary. * * The remap parameter can be NULL (no remapping). */ diff --git a/libhb/comb_detect.c b/libhb/comb_detect.c index 4051f936c..16eef9f21 100644 --- a/libhb/comb_detect.c +++ b/libhb/comb_detect.c @@ -626,7 +626,7 @@ static void detect_combed_segment( hb_filter_private_t * pv, else if (spatial_metric == 1) { /* This, for comparison, is what IsCombed uses. - It's better, but still noise senstive. */ + It's better, but still noise sensitive. */ int combing = ( cur[up_1] - cur[0] ) * ( cur[down_1] - cur[0] ); @@ -1246,7 +1246,7 @@ static int comb_detect_init( hb_filter_object_t * filter, decomb_prev_thread_args->segment_height[pp]; } - // Make segment hight a multiple of block_height + // Make segment height a multiple of block_height int h = hb_image_height(init->pix_fmt, init->geometry.height, pp) / pv->comb_check_nthreads; h = h / pv->block_height * pv->block_height; if (h == 0) diff --git a/libhb/common.c b/libhb/common.c index 80ccf9f17..7bc9438ec 100644 --- a/libhb/common.c +++ b/libhb/common.c @@ -4555,7 +4555,7 @@ void hb_audio_close( hb_audio_t **audio ) *********************************************************************/ void hb_audio_config_init(hb_audio_config_t * audiocfg) { - /* Set read-only paramaters to invalid values */ + /* Set read-only parameters to invalid values */ audiocfg->in.codec = 0; audiocfg->in.codec_param = 0; audiocfg->in.reg_desc = 0; @@ -4575,7 +4575,7 @@ void hb_audio_config_init(hb_audio_config_t * audiocfg) audiocfg->lang.simple[0] = 0; audiocfg->lang.iso639_2[0] = 0; - /* Initalize some sensible defaults */ + /* Initialize some sensible defaults */ audiocfg->in.track = audiocfg->out.track = 0; audiocfg->out.codec = hb_audio_encoder_get_default(HB_MUX_MP4); // default container audiocfg->out.samplerate = -1; diff --git a/libhb/common.h b/libhb/common.h index b45e16fbc..370ae5f55 100644 --- a/libhb/common.h +++ b/libhb/common.h @@ -25,7 +25,7 @@ /* * It seems WinXP doesn't align the stack of new threads to 16 bytes. - * To prevent crashes in SSE functions, we need to force stack alignement + * To prevent crashes in SSE functions, we need to force stack alignment * of new threads. */ #if defined( __GNUC__ ) && (defined( _WIN32 ) || defined( __MINGW32__ )) diff --git a/libhb/deccc608sub.c b/libhb/deccc608sub.c index 10d9926d9..02b4c4a09 100644 --- a/libhb/deccc608sub.c +++ b/libhb/deccc608sub.c @@ -859,9 +859,9 @@ static int write_cc_buffer_as_ssa(struct eia608_screen *data, aspect = (double)wb->width * wb->par.num / (wb->height * wb->par.den); - // CC grid is 16 rows by 32 colums (for 4:3 video) + // CC grid is 16 rows by 32 columns (for 4:3 video) // Our SSA resolution is the title resolution - // Tranlate CC grid to SSA coordinates + // Translate CC grid to SSA coordinates // The numbers are tweaked to keep things off the very // edges of the screen and in the "safe" zone int screen_columns = 32; diff --git a/libhb/decomb.c b/libhb/decomb.c index 28e96e046..0ba7cd6f8 100644 --- a/libhb/decomb.c +++ b/libhb/decomb.c @@ -353,7 +353,7 @@ static void blend_filter_line(filter_param_t *filter, } else { - hb_error("Invalid value y %d heigh %d", y, height); + hb_error("Invalid value y %d height %d", y, height); return; } diff --git a/libhb/decpgssub.c b/libhb/decpgssub.c index 507a94c67..e4c22d206 100644 --- a/libhb/decpgssub.c +++ b/libhb/decpgssub.c @@ -318,7 +318,7 @@ static int decsubWork( hb_work_object_t * w, hb_buffer_t ** buf_in, // work around broken timestamps if (pts < pv->last_pts) { - // XXX: this should only happen if the prevous pts + // XXX: this should only happen if the previous pts // was unknown and our 3 second default duration // overshot the next pgs pts. // diff --git a/libhb/decsrtsub.c b/libhb/decsrtsub.c index d4815dd81..43269e47d 100644 --- a/libhb/decsrtsub.c +++ b/libhb/decsrtsub.c @@ -424,7 +424,7 @@ static hb_buffer_t *srt_read( hb_work_private_t *pv ) int size, len; // If the current line is empty, we assume this is the - // seperation betwene two entries. In case we are wrong, + // separation between two entries. In case we are wrong, // the mistake is corrected in the next state. if (strcmp(line_buffer, "\n") == 0 || strcmp(line_buffer, "\r\n") == 0) { pv->current_state = k_state_potential_new_entry; @@ -621,7 +621,7 @@ static int decsrtInit( hb_work_object_t * w, hb_job_t * job ) pv->subtitle = w->subtitle; /* - * Figure out the start and stop times from teh chapters being + * Figure out the start and stop times from the chapters being * encoded - drop subtitle not in this range. */ pv->start_time = 0; diff --git a/libhb/decssasub.h b/libhb/decssasub.h index 91c696614..d1c27139b 100644 --- a/libhb/decssasub.h +++ b/libhb/decssasub.h @@ -14,12 +14,12 @@ typedef struct { uint32_t flags; - uint32_t fg_rgb; // forground color + uint32_t fg_rgb; // foreground color uint32_t alt_rgb; // secondary color uint32_t ol_rgb; // outline color uint32_t bg_rgb; // background color - uint32_t fg_alpha; // forground alpha + uint32_t fg_alpha; // foreground alpha uint32_t alt_alpha; // secondary alpha uint32_t ol_alpha; // outline alpha uint32_t bg_alpha; // background alpha diff --git a/libhb/demuxmpeg.c b/libhb/demuxmpeg.c index 2b4d2e1c7..c0eb09795 100644 --- a/libhb/demuxmpeg.c +++ b/libhb/demuxmpeg.c @@ -265,7 +265,7 @@ static void demux_mpeg( hb_buffer_t *buf, hb_buffer_list_t *list_es, // we have a new pcr discontinuity = check_mpeg_scr( state, buf->s.pcr, tolerance ); buf->s.pcr = AV_NOPTS_VALUE; - // Some streams have consistantly bad PCRs or SCRs + // Some streams have consistently bad PCRs or SCRs // So filter out the offset if ( buf->s.start >= 0 ) state->scr_delta = buf->s.start - state->last_scr; diff --git a/libhb/dvdnav.c b/libhb/dvdnav.c index bdcdcaae0..b0e7239c8 100644 --- a/libhb/dvdnav.c +++ b/libhb/dvdnav.c @@ -1375,7 +1375,7 @@ static int try_menu( break; } } - // Sometimes the menu is preceeded by a intro that just + // Sometimes the menu is preceded by a intro that just // gets restarted when hitting the menu button. So // try skipping with the skip forward button. Then // try hitting the menu again. diff --git a/libhb/eedi2.c b/libhb/eedi2.c index e12dbaef9..a4305dd6e 100644 --- a/libhb/eedi2.c +++ b/libhb/eedi2.c @@ -155,7 +155,7 @@ void eedi2_upscale_by_2( uint8_t * srcp, uint8_t * dstp, int height, int pitch ) } /** - * Finds places where verticaly adjacent pixels abruptly change in intensity, i.e., sharp edges. + * Finds places where vertically adjacent pixels abruptly change in intensity, i.e., sharp edges. * @param dstp Pointer to the destination bitmap * @param dst_pitch Stride of dstp * @param srcp Pointer to the source bitmap diff --git a/libhb/enc_qsv.c b/libhb/enc_qsv.c index b5d387b44..fd4a253f9 100644 --- a/libhb/enc_qsv.c +++ b/libhb/enc_qsv.c @@ -961,7 +961,7 @@ int encqsvInit(hb_work_object_t *w, hb_job_t *job) pv->param.videoParam->mfx.MaxKbps = pv->param.rc.vbv_max_bitrate; } - // set rate control paremeters + // set rate control parameters if (job->vquality > HB_INVALID_VIDEO_QUALITY) { if (pv->param.rc.icq) diff --git a/libhb/encavcodecaudio.c b/libhb/encavcodecaudio.c index 69b6f3895..79f775a9d 100644 --- a/libhb/encavcodecaudio.c +++ b/libhb/encavcodecaudio.c @@ -222,7 +222,7 @@ static int encavcodecaInit(hb_work_object_t *w, hb_job_t *job) pv->input_samples = context->frame_size * context->channels; pv->input_buf = malloc(pv->input_samples * sizeof(float)); // Some encoders in libav (e.g. fdk-aac) fail if the output buffer - // size is not some minumum value. 8K seems to be enough :( + // size is not some minimum value. 8K seems to be enough :( pv->max_output_bytes = MAX(AV_INPUT_BUFFER_MIN_SIZE, (pv->input_samples * av_get_bytes_per_sample(context->sample_fmt))); diff --git a/libhb/enctheora.c b/libhb/enctheora.c index 636afa76f..3a78d7228 100644 --- a/libhb/enctheora.c +++ b/libhb/enctheora.c @@ -152,7 +152,7 @@ int enctheoraInit( hb_work_object_t * w, hb_job_t * job ) * We make this call just to set the encoder into 2-pass mode, because * by default enabling two-pass sets the buffer delay to the whole file * (because there's no way to explicitly request that behavior). - * If we waited until we were actually encoding, it would overwite our + * If we waited until we were actually encoding, it would overwrite our * settings.*/ hb_log("enctheora: init 2nd pass"); if( th_encode_ctl( pv->ctx, TH_ENCCTL_2PASS_IN, NULL, 0) < 0) diff --git a/libhb/encx264.c b/libhb/encx264.c index 984d52be9..b49d55518 100644 --- a/libhb/encx264.c +++ b/libhb/encx264.c @@ -514,7 +514,7 @@ int encx264Init( hb_work_object_t * w, hb_job_t * job ) hb_log( "encx264: min-keyint: %s, keyint: %s", min, max ); } - /* Settings which can't be overriden in the encoder_options string + /* Settings which can't be overridden in the encoder_options string * (muxer-specific settings, resolution, ratecontrol, etc.). */ /* Disable annexb. Inserts size into nal header instead of start code. */ @@ -1349,7 +1349,7 @@ char * hb_x264_param_unparse(int bit_depth, const char *x264_preset, if (api->param_default_preset(¶m, x264_preset, x264_tune) < 0) { /* - * Note: GUIs should be able to always specifiy valid preset/tunes, so + * Note: GUIs should be able to always specify valid preset/tunes, so * this code will hopefully never be reached */ return strdup("hb_x264_param_unparse: invalid x264 preset/tune"); @@ -1900,7 +1900,7 @@ char * hb_x264_param_unparse(int bit_depth, const char *x264_preset, } else { - // pbratio requires bframes and is incomaptible with mbtree + // pbratio requires bframes and is incompatible with mbtree hb_dict_remove(x264_opts, "pbratio"); } if (param.rc.f_qcompress != defaults.rc.f_qcompress) diff --git a/libhb/encx265.c b/libhb/encx265.c index bc32a5e78..1f66228fd 100644 --- a/libhb/encx265.c +++ b/libhb/encx265.c @@ -225,7 +225,7 @@ int encx265Init(hb_work_object_t *w, hb_job_t *job) job->color_matrix = param->vui.matrixCoeffs; /* - * Settings which can't be overriden in the encodeer_options string + * Settings which can't be overridden in the encodeer_options string * (muxer-specific settings, resolution, ratecontrol, etc.). */ param->bRepeatHeaders = job->inline_parameter_sets; diff --git a/libhb/hb.c b/libhb/hb.c index 8bd6813be..b973645b0 100644 --- a/libhb/hb.c +++ b/libhb/hb.c @@ -758,7 +758,7 @@ int hb_detect_comb( hb_buffer_t * buf, int color_equal, int color_diff, int thre // compare results /* The final cc score for a plane is the percentage of combed pixels it contains. Because sensitivity goes down to hundreths of a percent, multiply by 1000 - so it will be easy to compare against the threhold value which is an integer. */ + so it will be easy to compare against the threshold value which is an integer. */ cc[k] = (int)( ( cc_1 + cc_2 ) * 1000.0 / ( width * height ) ); } diff --git a/libhb/internal.h b/libhb/internal.h index ca34ad05c..cc3bf7f19 100644 --- a/libhb/internal.h +++ b/libhb/internal.h @@ -210,7 +210,7 @@ static inline int hb_image_width(int pix_fmt, int width, int plane) if (desc != NULL && (plane == 1 || plane == 2)) { - // The wacky arithmatic assures rounding up. + // The wacky arithmetic assures rounding up. width = -((-width) >> desc->log2_chroma_w); } @@ -237,7 +237,7 @@ static inline int hb_image_height(int pix_fmt, int height, int plane) if (desc != NULL && (plane == 1 || plane == 2)) { - // The wacky arithmatic assures rounding up. + // The wacky arithmetic assures rounding up. height = -((-height) >> desc->log2_chroma_h); } diff --git a/libhb/nal_units.h b/libhb/nal_units.h index 71d8dad7f..c8a44e2f8 100644 --- a/libhb/nal_units.h +++ b/libhb/nal_units.h @@ -22,10 +22,10 @@ * The provided NAL unit must start with the NAL unit header. * * Note: the buffer is assumed to be large enough to hold the NAL unit - * as well as any additonal data the function may prepend/append to it. + * as well as any additional data the function may prepend/append to it. * * The caller may check the minimum required buffer size by passing a - * NULL buffer to the fucntion and checking the returned size value. + * NULL buffer to the function and checking the returned size value. */ size_t hb_nal_unit_write_annexb(uint8_t *buf, const uint8_t *nal_unit, const size_t nal_unit_size); size_t hb_nal_unit_write_isomp4(uint8_t *buf, const uint8_t *nal_unit, const size_t nal_unit_size); diff --git a/libhb/plist.c b/libhb/plist.c index 03b0df493..59e1780ba 100644 --- a/libhb/plist.c +++ b/libhb/plist.c @@ -650,7 +650,7 @@ gval_write(FILE *file, hb_value_t *gval) } else { - // Try to make anything thats unrecognized into a string + // Try to make anything that's unrecognized into a string hb_error("Unhandled data type %d", gtype); } } diff --git a/libhb/preset.c b/libhb/preset.c index 710499024..4a581e017 100644 --- a/libhb/preset.c +++ b/libhb/preset.c @@ -3402,7 +3402,7 @@ char * hb_presets_builtin_get_json(void) } // Lookup a preset in the preset list. The "name" may contain '/' -// separators to explicitely specify a preset within the preset lists +// separators to explicitly specify a preset within the preset lists // folder structure. // // If 'recurse' is specified, a recursive search for the first component @@ -3431,7 +3431,7 @@ static hb_preset_index_t * preset_lookup_path(const char *name, } // Lookup a preset in the preset list. The "name" may contain '/' -// separators to explicitely specify a preset within the preset lists +// separators to explicitly specify a preset within the preset lists // folder structure. // // If 'recurse' is specified, a recursive search for the first component diff --git a/libhb/preset.h b/libhb/preset.h index 09478e8fb..528767e76 100644 --- a/libhb/preset.h +++ b/libhb/preset.h @@ -157,7 +157,7 @@ void hb_sanitize_audio_settings(const hb_title_t * title, hb_value_t * audio_settings); // Lookup a preset in the preset list. The "name" may contain '/' -// separators to explicitely specify a preset within the preset lists +// separators to explicitly specify a preset within the preset lists // folder structure. // // If 'recurse' is specified, a recursive search for the first component diff --git a/libhb/qsv_common.c b/libhb/qsv_common.c index 3470f49e3..775e91dcb 100644 --- a/libhb/qsv_common.c +++ b/libhb/qsv_common.c @@ -273,7 +273,7 @@ static int query_capabilities(mfxSession session, mfxVersion version, hb_qsv_inf * - MFXVideoENCODE_Query should zero out all unsupported parameters * * Mode 2: - * - the paramaters we want to query are set for in + * - the parameters we want to query are set for in * - in ->mfx.CodecId field has to be set (mandatory) * - out->mfx.CodecId field has to be set (mandatory) * - MFXVideoENCODE_Query should sanitize all unsupported parameters diff --git a/libhb/qsv_filter.c b/libhb/qsv_filter.c index 2e61c5f45..5daa69b0e 100644 --- a/libhb/qsv_filter.c +++ b/libhb/qsv_filter.c @@ -548,7 +548,7 @@ int process_frame(hb_qsv_list* received_item, hb_qsv_context* qsv, hb_filter_pri continue; } - // shouldnt be a case but drain + // shouldn't be a case but drain if(stage){ hb_qsv_stage* new_stage = hb_qsv_stage_init(); diff --git a/libhb/qsv_libav.h b/libhb/qsv_libav.h index 38f89e410..b74b50c2b 100644 --- a/libhb/qsv_libav.h +++ b/libhb/qsv_libav.h @@ -76,7 +76,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * data/linesize should be used together with SYSTEM_MEMORY and tested * * Note: Compilation would require: - * - Intel MediaSDK headers, Full SDK is avaialble from the original web site: + * - Intel MediaSDK headers, Full SDK is available from the original web site: * http://software.intel.com/en-us/vcsource/tools/media-SDK * Will be referenced as mfx*.h (mfxdefs.h, mfxstructures.h, ... ) * and @@ -374,7 +374,7 @@ typedef struct hb_qsv_config { /** * Set amount of additional surfaces might be needed - * Format: ammount of additional buffers(surfaces+syncs) + * Format: amount of additional buffers(surfaces+syncs) * to allocate in advance * * - encoding: Set by user. diff --git a/libhb/reader.c b/libhb/reader.c index 8d15ae8d6..36ec36868 100644 --- a/libhb/reader.c +++ b/libhb/reader.c @@ -572,7 +572,7 @@ static int reader_work( hb_work_object_t * w, hb_buffer_t ** buf_in, buf = splice_discontinuity(r, buf); if (fifos && buf != NULL) { - /* if there are mutiple output fifos, send a copy of the + /* if there are multiple output fifos, send a copy of the * buffer down all but the first (we have to not ship the * original buffer or we'll race with the thread that's * consuming the buffer & inject garbage into the data stream). */ diff --git a/libhb/rendersub.c b/libhb/rendersub.c index 2cf92b058..e323ff04a 100644 --- a/libhb/rendersub.c +++ b/libhb/rendersub.c @@ -674,7 +674,7 @@ static int cc608sub_post_init( hb_filter_object_t * filter, hb_job_t * job ) int height = job->title->geometry.height - job->crop[0] - job->crop[1]; int width = job->title->geometry.width - job->crop[2] - job->crop[3]; int safe_height = 0.8 * job->title->geometry.height; - // Use fixed widht font for CC + // Use fixed width font for CC hb_subtitle_add_ssa_header(filter->subtitle, HB_FONT_MONO, .08 * safe_height, width, height); return ssa_post_init(filter, job); diff --git a/libhb/stream.c b/libhb/stream.c index 326cb0e4b..06e6c70ab 100644 --- a/libhb/stream.c +++ b/libhb/stream.c @@ -394,7 +394,7 @@ static kind_t ts_stream_kind( hb_stream_t * stream, int idx ) { if ( stream->ts.list[idx].pes_list != -1 ) { - // Retuns kind for the first pes substream in the pes list + // Returns kind for the first pes substream in the pes list // All substreams in a TS stream are the same kind. return stream->pes.list[stream->ts.list[idx].pes_list].stream_kind; } @@ -408,7 +408,7 @@ static kind_t ts_stream_type( hb_stream_t * stream, int idx ) { if ( stream->ts.list[idx].pes_list != -1 ) { - // Retuns stream type for the first pes substream in the pes list + // Returns stream type for the first pes substream in the pes list // All substreams in a TS stream are the same stream type. return stream->pes.list[stream->ts.list[idx].pes_list].stream_type; } diff --git a/libhb/sync.c b/libhb/sync.c index c15d54a2e..f0b1b9abc 100644 --- a/libhb/sync.c +++ b/libhb/sync.c @@ -21,7 +21,7 @@ #define SYNC_MIN_AUDIO_QUEUE_LEN 30 // We do not place a limit on the number of subtitle frames -// that are buffered (max_len == INT_MAX) becuase there are +// that are buffered (max_len == INT_MAX) because there are // cases where we will receive all the subtitles for a file // all at once (SSA subs). // diff --git a/libhb/vfr.c b/libhb/vfr.c index ef7c1782d..e62c741e9 100644 --- a/libhb/vfr.c +++ b/libhb/vfr.c @@ -84,8 +84,8 @@ static void build_gamma_lut( hb_filter_private_t * pv ) #define DUP_THRESH_SSE 5.0 -// Compute ths sum of squared errors for a 16x16 block -// Gamma adjusts pixel values so that less visible diffreences +// Compute the sum of squared errors for a 16x16 block +// Gamma adjusts pixel values so that less visible differences // count less. static inline unsigned sse_block16( unsigned *gamma_lut, uint8_t *a, uint8_t *b, int stride ) { diff --git a/libhb/work.c b/libhb/work.c index 371fa639a..c2eeb34e6 100644 --- a/libhb/work.c +++ b/libhb/work.c @@ -806,7 +806,7 @@ static int sanitize_subtitles( hb_job_t * job ) subtitle = hb_list_item(job->list_subtitle, i); /* Remove the scanned subtitle from the list if * it would result in: - * - an emty track (forced and no forced hits) + * - an empty track (forced and no forced hits) * - an identical, duplicate subtitle track: * -> both (or neither) are forced * -> subtitle is not forced but all its hits are forced */ @@ -1340,7 +1340,7 @@ static void sanitize_filter_list(hb_list_t *list) } /** - * Job initialization rountine. + * Job initialization routine. * * Initializes fifos. * Creates work objects for synchronizer, video decoder, video renderer, diff --git a/macosx/Growl.framework/Versions/A/Headers/GrowlApplicationBridge.h b/macosx/Growl.framework/Versions/A/Headers/GrowlApplicationBridge.h index 363975762..0bf3583e5 100644 --- a/macosx/Growl.framework/Versions/A/Headers/GrowlApplicationBridge.h +++ b/macosx/Growl.framework/Versions/A/Headers/GrowlApplicationBridge.h @@ -421,7 +421,7 @@ * @method openGrowlPreferences: * @abstract Open Growl preferences, optionally to this app's settings, growl:// method * @param showApp Whether to show the application's settings, otherwise just opens to the last position - * @return Return's whether opening the URL was succesfull or not. + * @return Returns whether opening the URL was successful or not. * @discussion Will launch if Growl is installed, but not running, and open the preferences window * Uses growl:// URL scheme * @since Growl.framework 1.4 diff --git a/macosx/HBAdvancedController.m b/macosx/HBAdvancedController.m index 8d4beb8b1..49af2baf5 100644 --- a/macosx/HBAdvancedController.m +++ b/macosx/HBAdvancedController.m @@ -1316,7 +1316,7 @@ if( [self X264AdvancedOptionsIsOpt: optNameToChange inString: currentOptString] ) { - /* If the option is in the string wth a semicolon, or starts the string, it's time to edit. + /* If the option is in the string with a semicolon, or starts the string, it's time to edit. This means parsing the whole string into an array of options and values. From there, iterate through the options, and when you reach the one that's been changed, edit it. */ @@ -1372,7 +1372,7 @@ } } - /* Change the dislayed option string to reflect the new modified settings */ + /* Change the displayed option string to reflect the new modified settings */ [fDisplayX264Options setStringValue:changedOptString]; } else // if none exists, add it to the string diff --git a/macosx/HBController.m b/macosx/HBController.m index d80ef95c2..38fd515c1 100644 --- a/macosx/HBController.m +++ b/macosx/HBController.m @@ -795,7 +795,7 @@ /** * Observe the job settings changes. - * This is used to update the file name and extention + * This is used to update the file name and extension * and the custom preset string. */ - (void)addJobObservers diff --git a/macosx/HBDockTile.h b/macosx/HBDockTile.h index 2b14cc824..e30e4bbdc 100644 --- a/macosx/HBDockTile.h +++ b/macosx/HBDockTile.h @@ -14,7 +14,7 @@ /** * Updates two DockTextFields on the dockTile, * one with total percentage, the other one with the ETA. - * The ETA string is formated by the callers * + * The ETA string is formatted by the callers * */ - (void)updateDockIcon:(double)progress withETA:(NSString *)etaStr; diff --git a/macosx/HBHUD.h b/macosx/HBHUD.h index d10e42f69..a46c02aa9 100644 --- a/macosx/HBHUD.h +++ b/macosx/HBHUD.h @@ -11,7 +11,7 @@ - (BOOL)canBeHidden; // Responder chains is nice and good, but NSViewController -// are not automatically insterted in the responder chain prior 10.10 +// are not automatically inserted in the responder chain prior 10.10 // and are removed when the view is hidden, so let's deliver the // events manually. diff --git a/macosx/HBOutputRedirect.m b/macosx/HBOutputRedirect.m index 7c121735d..9aff9eb31 100644 --- a/macosx/HBOutputRedirect.m +++ b/macosx/HBOutputRedirect.m @@ -137,7 +137,7 @@ int stderrwrite(void *inFD, const char *buffer, int size) * Private constructor which should not be called from outside. This is used to * initialize the class at @c stdoutRedirect and @c stderrRedirect. * - * @param aStream Stream that wil be redirected (stdout or stderr). + * @param aStream Stream that will be redirected (stdout or stderr). * @param aSelector Selector that will be called in listeners to redirect the stream. * * @return New HBOutputRedirect object. diff --git a/macosx/HBPresetsManager.h b/macosx/HBPresetsManager.h index f9fbd9770..7fcc43292 100644 --- a/macosx/HBPresetsManager.h +++ b/macosx/HBPresetsManager.h @@ -32,7 +32,7 @@ extern NSString *HBPresetsChangedNotification; @property (nonatomic, readwrite, strong) HBPreset *defaultPreset; /** - * Returs a HBPresetManager with the presets loaded at the passed URL. + * Returns a HBPresetManager with the presets loaded at the passed URL. * * @param url the URL of the presets file to load. * diff --git a/macosx/HBPresetsManager.m b/macosx/HBPresetsManager.m index 5c11d9359..cb90e5835 100644 --- a/macosx/HBPresetsManager.m +++ b/macosx/HBPresetsManager.m @@ -293,7 +293,7 @@ typedef NS_ENUM(NSUInteger, HBPresetLoadingResult) { __block HBPreset *firstBuiltInPreset = nil; __block BOOL defaultAlreadySetted = NO; - // Search for a possibile new default preset + // Search for a possible new default preset // Try to use "Normal" or the first user preset. [self.root enumerateObjectsUsingBlock:^(id obj, NSIndexPath *idx, BOOL *stop) { if ([obj isBuiltIn] && [obj isLeaf]) diff --git a/macosx/HBQueueController.m b/macosx/HBQueueController.m index 4b37640cb..d2506ef01 100644 --- a/macosx/HBQueueController.m +++ b/macosx/HBQueueController.m @@ -25,7 +25,7 @@ // Pasteboard type for or drag operations #define DragDropSimplePboardType @"HBQueueCustomOutlineViewPboardType" -// DockTile update freqency in total percent increment +// DockTile update frequency in total percent increment #define dockTileUpdateFrequency 0.1f @interface HBQueueController () diff --git a/macosx/HBQueueOutlineView.h b/macosx/HBQueueOutlineView.h index 8565237cb..b17d0789e 100644 --- a/macosx/HBQueueOutlineView.h +++ b/macosx/HBQueueOutlineView.h @@ -13,7 +13,7 @@ // HBQueueOutlineView exists solely to get around a bug in variable row height outline // views in which row heights get messed up during live resizes. See this discussion: // http://lists.apple.com/archives/cocoa-dev/2005/Oct/msg00871.html -// However, the recommeneded fix (override drawRect:) does not work. Instead, this +// However, the recommended fix (override drawRect:) does not work. Instead, this // subclass implements viewDidEndLiveResize in order to recalculate all row heights. // // (2) prevent expanding of items during drags diff --git a/macosx/HBSubtitles.m b/macosx/HBSubtitles.m index 235ceec1e..fcfefdbb7 100644 --- a/macosx/HBSubtitles.m +++ b/macosx/HBSubtitles.m @@ -39,7 +39,7 @@ extern NSString *keySubTrackSrtFileURLBookmark; @property (nonatomic, readwrite, weak) HBJob *job; @property (nonatomic, readwrite) int container; -/// Used to aovid circular dependecy validation. +/// Used to avoid circular dependency validation. @property (nonatomic, readwrite) BOOL validating; @end diff --git a/macosx/HBVideo.m b/macosx/HBVideo.m index 21716b0bf..2df476165 100644 --- a/macosx/HBVideo.m +++ b/macosx/HBVideo.m @@ -548,7 +548,7 @@ fail: } /** - * Retuns the tune string plus the fastdecode option (if enabled) + * Returns the tune string plus the fastdecode option (if enabled) */ - (NSString *)completeTune { diff --git a/macosx/NSWindow+HBAdditions.h b/macosx/NSWindow+HBAdditions.h index caaeaf982..4f4116013 100644 --- a/macosx/NSWindow+HBAdditions.h +++ b/macosx/NSWindow+HBAdditions.h @@ -9,7 +9,7 @@ @interface NSWindow (HBAdditions) /** - * Resizes the entire window to accomodate a view of a particular size. + * Resizes the entire window to accommodate a view of a particular size. */ - (void)HB_resizeToBestSizeForViewSize:(NSSize)viewSize center:(NSPoint)center animate:(BOOL)performAnimation; diff --git a/macosx/NSWindow+HBAdditions.m b/macosx/NSWindow+HBAdditions.m index ddb9a7899..ea13a9dcc 100644 --- a/macosx/NSWindow+HBAdditions.m +++ b/macosx/NSWindow+HBAdditions.m @@ -26,7 +26,7 @@ // Set the new frame size // Add the border to the new frame size so that the content region - // of the frame is large enough to accomodate the preview image + // of the frame is large enough to accommodate the preview image frame.size.width = viewSize.width + borderX; frame.size.height = viewSize.height + borderY; diff --git a/macosx/Sparkle.framework/Versions/A/Headers/SUUpdater.h b/macosx/Sparkle.framework/Versions/A/Headers/SUUpdater.h index ed0072af4..a0ff707e7 100644 --- a/macosx/Sparkle.framework/Versions/A/Headers/SUUpdater.h +++ b/macosx/Sparkle.framework/Versions/A/Headers/SUUpdater.h @@ -21,7 +21,7 @@ /*! The main API in Sparkle for controlling the update mechanism. - This class is used to configure the update paramters as well as manually + This class is used to configure the update parameters as well as manually and automatically schedule and control checks for updates. */ SU_EXPORT @interface SUUpdater : NSObject diff --git a/macosx/module.defs b/macosx/module.defs index 622afc78d..befd4daf3 100644 --- a/macosx/module.defs +++ b/macosx/module.defs @@ -41,11 +41,11 @@ endif ## extra CFLAGS: macro definitions MACOSX.extra_cflags = OTHER_CFLAGS='$(MACOSX.GCC.D)' -## launch a build thru xcode; which in turn will do a nested make against +## launch a build through xcode; which in turn will do a nested make against ## this build system with normal build rules enabled. ## ## $(1) = list of targets -## $(2) = list of goals to shunt thru xcodebuild->make +## $(2) = list of goals to shunt through xcodebuild->make ## MACOSX.XCODE = $(strip \ diff --git a/pkg/linux/debian/copyright b/pkg/linux/debian/copyright index 30c423a16..34706c11b 100644 --- a/pkg/linux/debian/copyright +++ b/pkg/linux/debian/copyright @@ -112,7 +112,7 @@ License Declaration: The GPL may be found in the file /usr/share/common-licenses/GPL. -The upstream source has the follwing license declaration: +The upstream source has the following license declaration: --- This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -252,7 +252,7 @@ The debian/libfaad directory contains header from the libfaad-dev package. | | The GPL may be found in the file /usr/share/common-licenses/GPL. | - | The upstream source has the follwing license declaration: + | The upstream source has the following license declaration: | --- | This program is free software; you can redistribute it and/or modify it under | the terms of the GNU General Public License as published by the Free Software diff --git a/scripts/tag-release.sh b/scripts/tag-release.sh index 055676f4c..4c9219b40 100755 --- a/scripts/tag-release.sh +++ b/scripts/tag-release.sh @@ -98,7 +98,7 @@ function tag_release() if [ "x${REF}" == "x" ]; then echo "Creating release tag ${TAG} and branch ${BRANCH} from HEAD, proceed? (y/N)" - # retrive full hash of HEAD + # retrieve full hash of HEAD COMMIT=$(${GIT_EXE} rev-list HEAD --max-count=1) else echo "Creating release tag ${TAG} and branch ${BRANCH} from ${REF}, proceed? (y/N)" diff --git a/win/CS/HandBrake.ApplicationServices/Interop/Helpers/InteropUtilities.cs b/win/CS/HandBrake.ApplicationServices/Interop/Helpers/InteropUtilities.cs index 2b62de4d8..95c43aee8 100644 --- a/win/CS/HandBrake.ApplicationServices/Interop/Helpers/InteropUtilities.cs +++ b/win/CS/HandBrake.ApplicationServices/Interop/Helpers/InteropUtilities.cs @@ -216,7 +216,7 @@ namespace HandBrake.ApplicationServices.Interop.Helpers } /// - /// Reads in a list of objects given an interator and a conversion function. + /// Reads in a list of objects given an iterator and a conversion function. /// /// The type of the struct given by the iterator. /// The object type to convert to. diff --git a/win/CS/HandBrake.ApplicationServices/Services/Logging/LogService.cs b/win/CS/HandBrake.ApplicationServices/Services/Logging/LogService.cs index abaf18e64..b0195ed50 100644 --- a/win/CS/HandBrake.ApplicationServices/Services/Logging/LogService.cs +++ b/win/CS/HandBrake.ApplicationServices/Services/Logging/LogService.cs @@ -309,7 +309,7 @@ namespace HandBrake.ApplicationServices.Services.Logging } catch (Exception exc) { - Debug.WriteLine(exc); // This exception doesn't warrent user interaction, but it should be logged + Debug.WriteLine(exc); // This exception doesn't warrant user interaction, but it should be logged } } @@ -349,7 +349,7 @@ namespace HandBrake.ApplicationServices.Services.Logging } catch (Exception exc) { - Debug.WriteLine(exc); // This exception doesn't warrent user interaction, but it should be logged + Debug.WriteLine(exc); // This exception doesn't warrant user interaction, but it should be logged } } diff --git a/win/CS/HandBrakeTools/Program.cs b/win/CS/HandBrakeTools/Program.cs index d4da0dbf5..cbbc0e758 100644 --- a/win/CS/HandBrakeTools/Program.cs +++ b/win/CS/HandBrakeTools/Program.cs @@ -20,7 +20,7 @@ namespace HandBrakeTools { if (args.Length == 0) { - Console.WriteLine("Invalid Comand. Either 'genkeys' or 'sign '"); + Console.WriteLine("Invalid Command. Either 'genkeys' or 'sign '"); Console.Read(); return; } diff --git a/win/CS/HandBrakeWPF/App.xaml.cs b/win/CS/HandBrakeWPF/App.xaml.cs index 45b2fa31a..3d0952776 100644 --- a/win/CS/HandBrakeWPF/App.xaml.cs +++ b/win/CS/HandBrakeWPF/App.xaml.cs @@ -88,7 +88,7 @@ namespace HandBrakeWPF } /// - /// Non-UI Thread expection handler. + /// Non-UI Thread exception handler. /// /// /// The sender. @@ -197,7 +197,7 @@ namespace HandBrakeWPF } catch (Exception) { - MessageBox.Show("An Unknown Error has occured. \n\n Exception:" + exception, "Unhandled Exception", + MessageBox.Show("An Unknown Error has occurred. \n\n Exception:" + exception, "Unhandled Exception", MessageBoxButton.OK, MessageBoxImage.Error); } } diff --git a/win/CS/HandBrakeWPF/Controls/AlertPanel.xaml.cs b/win/CS/HandBrakeWPF/Controls/AlertPanel.xaml.cs index 8c2b39e03..eba0f3ded 100644 --- a/win/CS/HandBrakeWPF/Controls/AlertPanel.xaml.cs +++ b/win/CS/HandBrakeWPF/Controls/AlertPanel.xaml.cs @@ -28,25 +28,25 @@ namespace HandBrakeWPF.Controls } /// - /// Dependancy Property for the Message Property + /// Dependency Property for the Message Property /// public static readonly DependencyProperty MessageProperty = DependencyProperty.Register("Message", typeof(string), typeof(AlertPanel), new UIPropertyMetadata("Loading...")); /// - /// Dependancy Property for the submessage propery + /// Dependency Property for the submessage property /// public static readonly DependencyProperty SubMessageProperty = DependencyProperty.Register("SubMessage", typeof(string), typeof(AlertPanel), new FrameworkPropertyMetadata("Please Wait", FrameworkPropertyMetadataOptions.AffectsRender)); /// - /// Dependancy Property for the submessage propery + /// Dependency Property for the submessage property /// public static readonly DependencyProperty DefaultActionProperty = DependencyProperty.Register("DefaultAction", typeof(Action), typeof(AlertPanel), new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.None, DefaultActionSet)); /// - /// Dependancy Property for the submessage propery + /// Dependency Property for the submessage property /// public static readonly DependencyProperty ActionTextProperty = DependencyProperty.Register("ActionText", typeof(string), typeof(AlertPanel), new UIPropertyMetadata("Cancel")); diff --git a/win/CS/HandBrakeWPF/Converters/BooleanConverter.cs b/win/CS/HandBrakeWPF/Converters/BooleanConverter.cs index 5273a3210..b4fc316e8 100644 --- a/win/CS/HandBrakeWPF/Converters/BooleanConverter.cs +++ b/win/CS/HandBrakeWPF/Converters/BooleanConverter.cs @@ -38,7 +38,7 @@ namespace HandBrakeWPF.Converters /// public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { - // Paramater is a boolean which inverts the output. + // Parameter is a boolean which inverts the output. var param = System.Convert.ToBoolean(parameter, CultureInfo.InvariantCulture); if (value is bool) diff --git a/win/CS/HandBrakeWPF/Converters/BooleanToHiddenVisibilityConverter.cs b/win/CS/HandBrakeWPF/Converters/BooleanToHiddenVisibilityConverter.cs index d60ab33c3..33a710a82 100644 --- a/win/CS/HandBrakeWPF/Converters/BooleanToHiddenVisibilityConverter.cs +++ b/win/CS/HandBrakeWPF/Converters/BooleanToHiddenVisibilityConverter.cs @@ -39,7 +39,7 @@ namespace HandBrakeWPF.Converters /// public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { - // Paramater is a boolean which inverts the output. + // Parameter is a boolean which inverts the output. var param = System.Convert.ToBoolean(parameter, CultureInfo.InvariantCulture); if (value == null) diff --git a/win/CS/HandBrakeWPF/Converters/BooleanToVisibilityConverter.cs b/win/CS/HandBrakeWPF/Converters/BooleanToVisibilityConverter.cs index 6c9d7fd12..29bac2a01 100644 --- a/win/CS/HandBrakeWPF/Converters/BooleanToVisibilityConverter.cs +++ b/win/CS/HandBrakeWPF/Converters/BooleanToVisibilityConverter.cs @@ -39,7 +39,7 @@ namespace HandBrakeWPF.Converters /// public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { - // Paramater is a boolean which inverts the output. + // Parameter is a boolean which inverts the output. var param = System.Convert.ToBoolean(parameter, CultureInfo.InvariantCulture); if (value == null) diff --git a/win/CS/HandBrakeWPF/Model/Audio/AudioBehaviours.cs b/win/CS/HandBrakeWPF/Model/Audio/AudioBehaviours.cs index 438117ce3..87923b8b6 100644 --- a/win/CS/HandBrakeWPF/Model/Audio/AudioBehaviours.cs +++ b/win/CS/HandBrakeWPF/Model/Audio/AudioBehaviours.cs @@ -90,7 +90,7 @@ namespace HandBrakeWPF.Model.Audio } /// - /// Gets or sets the selected langauges. + /// Gets or sets the selected languages. /// public BindingList SelectedLangauges { diff --git a/win/CS/HandBrakeWPF/Model/UpdateCheckInformation.cs b/win/CS/HandBrakeWPF/Model/UpdateCheckInformation.cs index 3ac3fb620..d994dc952 100644 --- a/win/CS/HandBrakeWPF/Model/UpdateCheckInformation.cs +++ b/win/CS/HandBrakeWPF/Model/UpdateCheckInformation.cs @@ -22,7 +22,7 @@ namespace HandBrakeWPF.Model public bool NewVersionAvailable { get; set; } /// - /// Gets a value indicating whether an Error Occured. + /// Gets a value indicating whether an Error Occurred. /// public bool ErrorOccured { @@ -50,7 +50,7 @@ namespace HandBrakeWPF.Model public string DownloadFile { get; set; } /// - /// Gets or sets the error that occurred, if any. This will be null if no error occured. + /// Gets or sets the error that occurred, if any. This will be null if no error occurred. /// public Exception Error { get; set; } diff --git a/win/CS/HandBrakeWPF/Properties/Resources.Designer.cs b/win/CS/HandBrakeWPF/Properties/Resources.Designer.cs index 1166457aa..657b2f22e 100644 --- a/win/CS/HandBrakeWPF/Properties/Resources.Designer.cs +++ b/win/CS/HandBrakeWPF/Properties/Resources.Designer.cs @@ -640,7 +640,7 @@ namespace HandBrakeWPF.Properties { } /// - /// Looks up a localized string similar to An Unknown Error has occured.. + /// Looks up a localized string similar to An Unknown Error has occurred.. /// public static string ErrorViewModel_UnknownError { get { @@ -1684,7 +1684,7 @@ namespace HandBrakeWPF.Properties { } /// - /// Looks up a localized string similar to An error occured when trying to stop the scan. Please restart HandBrake.. + /// Looks up a localized string similar to An error occurred when trying to stop the scan. Please restart HandBrake.. /// public static string ScanService_ScanStopFailed { get { @@ -1861,7 +1861,7 @@ namespace HandBrakeWPF.Properties { } /// - /// Looks up a localized string similar to A problem occured when trying to save your preferences.. + /// Looks up a localized string similar to A problem occurred when trying to save your preferences.. /// public static string UserSettings_AnErrorOccured { get { diff --git a/win/CS/HandBrakeWPF/Properties/Resources.resx b/win/CS/HandBrakeWPF/Properties/Resources.resx index 2e57bf7a7..f21033e22 100644 --- a/win/CS/HandBrakeWPF/Properties/Resources.resx +++ b/win/CS/HandBrakeWPF/Properties/Resources.resx @@ -595,7 +595,7 @@ The Activity log may have further information. There is no further information available about this error. - An Unknown Error has occured. + An Unknown Error has occurred. A New Update is Available! Please check the website for release notes. @@ -784,7 +784,7 @@ Are you sure you want to import the chapter names? Chapter duration doesn't match between source and input file - An error occured when trying to stop the scan. Please restart HandBrake. + An error occurred when trying to stop the scan. Please restart HandBrake. HandBrake is unable to upgrade your presets file to a new version format. @@ -794,7 +794,7 @@ Your preset file will be archived and new one created. You will need to re-creat Any settings you changed may need to be reset the next time HandBrake launches. - A problem occured when trying to save your preferences. + A problem occurred when trying to save your preferences. Warning, your settings have been reset! diff --git a/win/CS/HandBrakeWPF/Properties/ResourcesTooltips.Designer.cs b/win/CS/HandBrakeWPF/Properties/ResourcesTooltips.Designer.cs index 74ef418c0..9a31e6a74 100644 --- a/win/CS/HandBrakeWPF/Properties/ResourcesTooltips.Designer.cs +++ b/win/CS/HandBrakeWPF/Properties/ResourcesTooltips.Designer.cs @@ -667,7 +667,7 @@ namespace HandBrakeWPF.Properties { /// /// Looks up a localized string similar to Tune settings to optimize for common scenarios. /// - ///This can improve effeciency for particular source characteristics or set + ///This can improve efficiency for particular source characteristics or set ///characteristics of the output file. Changes will be applied after the ///preset but before all other parameters.. /// diff --git a/win/CS/HandBrakeWPF/Properties/ResourcesTooltips.resx b/win/CS/HandBrakeWPF/Properties/ResourcesTooltips.resx index ae79c9c1c..ccc3856f6 100644 --- a/win/CS/HandBrakeWPF/Properties/ResourcesTooltips.resx +++ b/win/CS/HandBrakeWPF/Properties/ResourcesTooltips.resx @@ -240,7 +240,7 @@ to limit instantaneous bitrate, look into x264's vbv-bufsize and vbv-maxrate set Tune settings to optimize for common scenarios. -This can improve effeciency for particular source characteristics or set +This can improve efficiency for particular source characteristics or set characteristics of the output file. Changes will be applied after the preset but before all other parameters. diff --git a/win/CS/HandBrakeWPF/Services/Encode/EncodeBase.cs b/win/CS/HandBrakeWPF/Services/Encode/EncodeBase.cs index b822b976d..e3a807cf9 100644 --- a/win/CS/HandBrakeWPF/Services/Encode/EncodeBase.cs +++ b/win/CS/HandBrakeWPF/Services/Encode/EncodeBase.cs @@ -167,7 +167,7 @@ namespace HandBrakeWPF.Services.Encode } catch (Exception exc) { - Debug.WriteLine(exc); // This exception doesn't warrent user interaction, but it should be logged + Debug.WriteLine(exc); // This exception doesn't warrant user interaction, but it should be logged } return null; diff --git a/win/CS/HandBrakeWPF/Services/Encode/Interfaces/IEncode.cs b/win/CS/HandBrakeWPF/Services/Encode/Interfaces/IEncode.cs index b9a5f0aff..f60e27f6c 100644 --- a/win/CS/HandBrakeWPF/Services/Encode/Interfaces/IEncode.cs +++ b/win/CS/HandBrakeWPF/Services/Encode/Interfaces/IEncode.cs @@ -3,7 +3,7 @@ // This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. // // -// Encode Progess Status +// Encode Progress Status // // -------------------------------------------------------------------------------------------------------------------- @@ -18,7 +18,7 @@ namespace HandBrakeWPF.Services.Encode.Interfaces using EncodeTask = HandBrakeWPF.Services.Encode.Model.EncodeTask; /// - /// Encode Progess Status + /// Encode Progress Status /// /// /// The sender. @@ -29,7 +29,7 @@ namespace HandBrakeWPF.Services.Encode.Interfaces public delegate void EncodeProgessStatus(object sender, EncodeProgressEventArgs e); /// - /// Encode Progess Status + /// Encode Progress Status /// /// /// The sender. diff --git a/win/CS/HandBrakeWPF/Services/Interfaces/IUserSettingService.cs b/win/CS/HandBrakeWPF/Services/Interfaces/IUserSettingService.cs index bcd0ab27d..5c85387df 100644 --- a/win/CS/HandBrakeWPF/Services/Interfaces/IUserSettingService.cs +++ b/win/CS/HandBrakeWPF/Services/Interfaces/IUserSettingService.cs @@ -3,7 +3,7 @@ // This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. // // -// The User Setting Service Interace. +// The User Setting Service Interface. // // -------------------------------------------------------------------------------------------------------------------- @@ -23,7 +23,7 @@ namespace HandBrakeWPF.Services.Interfaces public delegate void SettingEventHandler(object sender, SettingChangedEventArgs e); /// - /// The User Setting Service Interace. + /// The User Setting Service Interface. /// public interface IUserSettingService { diff --git a/win/CS/HandBrakeWPF/Services/PrePostActionService.cs b/win/CS/HandBrakeWPF/Services/PrePostActionService.cs index 6311fe173..e4ff54e26 100644 --- a/win/CS/HandBrakeWPF/Services/PrePostActionService.cs +++ b/win/CS/HandBrakeWPF/Services/PrePostActionService.cs @@ -99,7 +99,7 @@ namespace HandBrakeWPF.Services /// private void EncodeService_EncodeCompleted(object sender, EncodeCompletedEventArgs e) { - // Send the file to the users requested applicaiton + // Send the file to the users requested application if (e.Successful) { this.SendToApplication(e.FileName); diff --git a/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs b/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs index c021c12ac..cd4c74e35 100644 --- a/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs +++ b/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs @@ -827,7 +827,7 @@ namespace HandBrakeWPF.Services.Presets Directory.CreateDirectory(directory); } - // Orgamise the Presets list into Json Equivilent objects. + // Organise the Presets list into Json Equivalent objects. Dictionary presetCategories = new Dictionary(); List uncategorisedPresets = new List(); @@ -881,7 +881,7 @@ namespace HandBrakeWPF.Services.Presets catch (Exception exc) { Debug.WriteLine(exc); - throw new GeneralApplicationException("Unable to write to the presets file.", "The details section below may indicate why this error has occured.", exc); + throw new GeneralApplicationException("Unable to write to the presets file.", "The details section below may indicate why this error has occurred.", exc); } } diff --git a/win/CS/HandBrakeWPF/Services/Queue/QueueProcessor.cs b/win/CS/HandBrakeWPF/Services/Queue/QueueProcessor.cs index 634ec69e5..84505d42a 100644 --- a/win/CS/HandBrakeWPF/Services/Queue/QueueProcessor.cs +++ b/win/CS/HandBrakeWPF/Services/Queue/QueueProcessor.cs @@ -85,7 +85,7 @@ namespace HandBrakeWPF.Services.Queue #region Delegates /// - /// Queue Progess Status + /// Queue Progress Status /// /// /// The sender. diff --git a/win/CS/HandBrakeWPF/Services/Scan/Interfaces/IScan.cs b/win/CS/HandBrakeWPF/Services/Scan/Interfaces/IScan.cs index 4336574aa..136d9a234 100644 --- a/win/CS/HandBrakeWPF/Services/Scan/Interfaces/IScan.cs +++ b/win/CS/HandBrakeWPF/Services/Scan/Interfaces/IScan.cs @@ -3,7 +3,7 @@ // This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. // // -// Encode Progess Status +// Encode Progress Status // // -------------------------------------------------------------------------------------------------------------------- @@ -19,7 +19,7 @@ namespace HandBrakeWPF.Services.Scan.Interfaces using HandBrakeWPF.Services.Scan.Model; /// - /// Encode Progess Status + /// Encode Progress Status /// /// /// The sender. @@ -30,7 +30,7 @@ namespace HandBrakeWPF.Services.Scan.Interfaces public delegate void ScanProgessStatus(object sender, ScanProgressEventArgs e); /// - /// Encode Progess Status + /// Encode Progress Status /// /// /// The sender. diff --git a/win/CS/HandBrakeWPF/Services/Scan/Model/Subtitle.cs b/win/CS/HandBrakeWPF/Services/Scan/Model/Subtitle.cs index eb983dec4..c8fc3a1fa 100644 --- a/win/CS/HandBrakeWPF/Services/Scan/Model/Subtitle.cs +++ b/win/CS/HandBrakeWPF/Services/Scan/Model/Subtitle.cs @@ -80,7 +80,7 @@ namespace HandBrakeWPF.Services.Scan.Model public string Language { get; set; } /// - /// Gets or sets the Langauage Code + /// Gets or sets the Language Code /// public string LanguageCode { get; set; } diff --git a/win/CS/HandBrakeWPF/Services/UserSettingService.cs b/win/CS/HandBrakeWPF/Services/UserSettingService.cs index 6d8994ac5..5b180cd22 100644 --- a/win/CS/HandBrakeWPF/Services/UserSettingService.cs +++ b/win/CS/HandBrakeWPF/Services/UserSettingService.cs @@ -3,7 +3,7 @@ // This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. // // -// The User Setting Serivce +// The User Setting Service // // -------------------------------------------------------------------------------------------------------------------- @@ -25,7 +25,7 @@ namespace HandBrakeWPF.Services using SettingChangedEventArgs = HandBrakeWPF.EventArgs.SettingChangedEventArgs; /// - /// The User Setting Serivce + /// The User Setting Service /// public class UserSettingService : IUserSettingService { diff --git a/win/CS/HandBrakeWPF/UserSettingConstants.cs b/win/CS/HandBrakeWPF/UserSettingConstants.cs index 83fa3ee07..0d9270d78 100644 --- a/win/CS/HandBrakeWPF/UserSettingConstants.cs +++ b/win/CS/HandBrakeWPF/UserSettingConstants.cs @@ -62,7 +62,7 @@ namespace HandBrakeWPF public const string LastUpdateCheckDate = "lastUpdateCheckDate"; /// - /// Main Window Minimise + /// Main Window Minimize /// public const string MainWindowMinimize = "MainWindowMinimize"; diff --git a/win/CS/HandBrakeWPF/Utilities/GeneralUtilities.cs b/win/CS/HandBrakeWPF/Utilities/GeneralUtilities.cs index 1db325ab1..325eacaa3 100644 --- a/win/CS/HandBrakeWPF/Utilities/GeneralUtilities.cs +++ b/win/CS/HandBrakeWPF/Utilities/GeneralUtilities.cs @@ -3,7 +3,7 @@ // This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. // // -// A Set of Static Utilites +// A Set of Static Utilities // // -------------------------------------------------------------------------------------------------------------------- @@ -20,7 +20,7 @@ namespace HandBrakeWPF.Utilities using HandBrake.ApplicationServices.Utilities; /// - /// A Set of Static Utilites + /// A Set of Static Utilities /// public class GeneralUtilities { diff --git a/win/CS/HandBrakeWPF/Utilities/Input/ChapterImporterCsv.cs b/win/CS/HandBrakeWPF/Utilities/Input/ChapterImporterCsv.cs index 7cf953adc..5313e3cf9 100644 --- a/win/CS/HandBrakeWPF/Utilities/Input/ChapterImporterCsv.cs +++ b/win/CS/HandBrakeWPF/Utilities/Input/ChapterImporterCsv.cs @@ -41,7 +41,7 @@ namespace HandBrakeWPF.Utilities.Input using (TextFieldParser csv = new TextFieldParser(filename) { CommentTokens = new[] { "#" }, // Comment lines - Delimiters = new[] { ",", "\t", ";", ":" }, // Support all of these common delimeter types + Delimiters = new[] { ",", "\t", ";", ":" }, // Support all of these common delimiter types HasFieldsEnclosedInQuotes = true, // Assume that our data will be properly escaped TextFieldType = FieldType.Delimited, TrimWhiteSpace = true // Remove excess whitespace from ends of imported values diff --git a/win/CS/HandBrakeWPF/Utilities/Portable.cs b/win/CS/HandBrakeWPF/Utilities/Portable.cs index 68eac79e2..c2dcb6f3e 100644 --- a/win/CS/HandBrakeWPF/Utilities/Portable.cs +++ b/win/CS/HandBrakeWPF/Utilities/Portable.cs @@ -66,7 +66,7 @@ namespace HandBrakeWPF.Utilities Directory.CreateDirectory(GetStorageDirectory()); } - // Setup enviroment variables for this instance. + // Setup environment variables for this instance. Environment.SetEnvironmentVariable("TMP", GetTempDirectory()); } diff --git a/win/CS/HandBrakeWPF/Utilities/Win32.cs b/win/CS/HandBrakeWPF/Utilities/Win32.cs index a65a5e09d..12154331a 100644 --- a/win/CS/HandBrakeWPF/Utilities/Win32.cs +++ b/win/CS/HandBrakeWPF/Utilities/Win32.cs @@ -25,7 +25,7 @@ namespace HandBrakeWPF.Utilities private static Action executor = action => action(); /// - /// Set the Forground Window + /// Set the Foreground Window /// /// /// The h wnd. @@ -103,7 +103,7 @@ namespace HandBrakeWPF.Utilities /// The dw process group id. /// /// - /// Bool true is sucess + /// Bool true is success /// [DllImport("kernel32.dll", SetLastError = true)] public static extern bool GenerateConsoleCtrlEvent(ConsoleCtrlEvent sigevent, int dwProcessGroupId); diff --git a/win/CS/HandBrakeWPF/Utilities/Win7.cs b/win/CS/HandBrakeWPF/Utilities/Win7.cs index 0f6cb5680..cb6cbbb7d 100644 --- a/win/CS/HandBrakeWPF/Utilities/Win7.cs +++ b/win/CS/HandBrakeWPF/Utilities/Win7.cs @@ -3,7 +3,7 @@ // This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. // // -// A class implimenting Windows 7 Specific features +// A class implementing Windows 7 Specific features // // -------------------------------------------------------------------------------------------------------------------- diff --git a/win/CS/HandBrakeWPF/ViewModels/ChaptersViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/ChaptersViewModel.cs index 023325c9b..30efc9200 100644 --- a/win/CS/HandBrakeWPF/ViewModels/ChaptersViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/ChaptersViewModel.cs @@ -247,7 +247,7 @@ namespace HandBrakeWPF.ViewModels if (importedChapters.TryGetValue(item.ChapterNumber, out chapterInfo)) chapterName = chapterInfo.Item1; - // Assign the chapter name unless the name is not set or only whitespace charaters + // Assign the chapter name unless the name is not set or only whitespace characters item.ChapterName = !string.IsNullOrWhiteSpace(chapterName) ? chapterName : string.Empty; } } diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs index 5fa5df576..76e3c026e 100644 --- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs @@ -486,7 +486,7 @@ namespace HandBrakeWPF.ViewModels public int TitleSpecificScan { get; set; } /// - /// Gets or sets a value indicating whether the encode serivce supports pausing. + /// Gets or sets a value indicating whether the encode service supports pausing. /// public bool CanPause { diff --git a/win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs index a959f225e..1e733384a 100644 --- a/win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs @@ -950,7 +950,7 @@ namespace HandBrakeWPF.ViewModels return; } - // Step 1, Update what controls are visibile. + // Step 1, Update what controls are visible. this.UpdateVisibileControls(); // Step 2, Set sensible defaults @@ -1012,7 +1012,7 @@ namespace HandBrakeWPF.ViewModels } /// - /// The update visibile controls. + /// The update visible controls. /// private void UpdateVisibileControls() { diff --git a/win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs index 8a61aa610..6c2bf0eca 100644 --- a/win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs @@ -142,7 +142,7 @@ namespace HandBrakeWPF.ViewModels // Live Preview this.userSettingService = userSettingService; this.errorService = errorService; - this.encodeService = new LibEncode(); // Preview needs a seperate instance rather than the shared singleton. This could maybe do with being refactored at some point + this.encodeService = new LibEncode(); // Preview needs a separate instance rather than the shared singleton. This could maybe do with being refactored at some point this.Title = "Preview"; this.Percentage = "0.00%"; diff --git a/win/CS/HandBrakeWPF/ViewModels/ViewModelBase.cs b/win/CS/HandBrakeWPF/ViewModels/ViewModelBase.cs index db40c7c66..d2f381e55 100644 --- a/win/CS/HandBrakeWPF/ViewModels/ViewModelBase.cs +++ b/win/CS/HandBrakeWPF/ViewModels/ViewModelBase.cs @@ -85,7 +85,7 @@ namespace HandBrakeWPF.ViewModels /// public virtual void OnLoad() { - // Impliment in the ViewModel to perform viewmodel specific code. + // Implement in the ViewModel to perform viewmodel specific code. } #endregion -- 2.40.0