summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorluz.paz <[email protected]>2018-02-07 10:54:59 -0500
committerScott <[email protected]>2018-02-20 18:10:44 +0000
commit2d1c8541460c2b63d46eb1a278adacee14a55556 (patch)
treebaf9c409edfb51f1a2b649b1f6e2291ff0524b76 /libhb
parent5ce54df39b61c5b104f83d7ce291e67eada56efc (diff)
Misc. typos
Found via `codespell -q 3 --skip="./gtk/po`
Diffstat (limited to 'libhb')
-rw-r--r--libhb/audio_remap.h2
-rw-r--r--libhb/comb_detect.c4
-rw-r--r--libhb/common.c4
-rw-r--r--libhb/common.h2
-rw-r--r--libhb/deccc608sub.c4
-rw-r--r--libhb/decomb.c2
-rw-r--r--libhb/decpgssub.c2
-rw-r--r--libhb/decsrtsub.c4
-rw-r--r--libhb/decssasub.h4
-rw-r--r--libhb/demuxmpeg.c2
-rw-r--r--libhb/dvdnav.c2
-rw-r--r--libhb/eedi2.c2
-rw-r--r--libhb/enc_qsv.c2
-rw-r--r--libhb/encavcodecaudio.c2
-rw-r--r--libhb/enctheora.c2
-rw-r--r--libhb/encx264.c6
-rw-r--r--libhb/encx265.c2
-rw-r--r--libhb/hb.c2
-rw-r--r--libhb/internal.h4
-rw-r--r--libhb/nal_units.h4
-rw-r--r--libhb/plist.c2
-rw-r--r--libhb/preset.c4
-rw-r--r--libhb/preset.h2
-rw-r--r--libhb/qsv_common.c2
-rw-r--r--libhb/qsv_filter.c2
-rw-r--r--libhb/qsv_libav.h4
-rw-r--r--libhb/reader.c2
-rw-r--r--libhb/rendersub.c2
-rw-r--r--libhb/stream.c4
-rw-r--r--libhb/sync.c2
-rw-r--r--libhb/vfr.c4
-rw-r--r--libhb/work.c4
32 files changed, 46 insertions, 46 deletions
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(&param, 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,