From 31a3817535c5b21d6aa11cffd2c12a92650e745d Mon Sep 17 00:00:00 2001 From: GSoC Contributor Date: Wed, 18 Feb 2026 17:20:34 +0530 Subject: [PATCH] Fix typos in comments and documentation - Fixed 'occured' -> 'occurred' in multiple files - Fixed 'recieved' -> 'received' in ffmpeg_intgr.c - Fixed 'Lenght' -> 'Length' in asf_functions.c - Fixed 'infered' -> 'inferred' in asf_functions.c These typos were found in comments and documentation across the codebase. This improves code readability and maintains professional documentation standards. --- src/lib_ccx/asf_functions.c | 4 ++-- src/lib_ccx/cc_bitstream.h | 2 +- src/lib_ccx/ffmpeg_intgr.c | 4 ++-- src/lib_ccx/zvbi/raw_decoder.c | 2 +- src/thirdparty/win_spec_incld/dirent.h | 2 +- tests/README.md | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/lib_ccx/asf_functions.c b/src/lib_ccx/asf_functions.c index d32db7c78..26c8272d8 100644 --- a/src/lib_ccx/asf_functions.c +++ b/src/lib_ccx/asf_functions.c @@ -537,9 +537,9 @@ int asf_get_more_data(struct lib_ccx_ctx *ctx, struct demuxer_data **ppdata) asf_data_container.StreamProperties.DecodeStreamNumber); } - // When reading "Payload parsing information" it occured that "Packet Lenght" + // When reading "Payload parsing information" it occurred that "Packet Length" // was not set (Packet Length Type 00) and for "Single Payloads" this means - // the Payload Data Length cannot be infered. Use min_packet_size, max_packet_size instead. + // the Payload Data Length cannot be inferred. Use min_packet_size, max_packet_size instead. if ((min_packet_size > 0) && (min_packet_size == max_packet_size)) asf_data_container.PacketSize = min_packet_size; diff --git a/src/lib_ccx/cc_bitstream.h b/src/lib_ccx/cc_bitstream.h index 162806d76..3d1dee38f 100644 --- a/src/lib_ccx/cc_bitstream.h +++ b/src/lib_ccx/cc_bitstream.h @@ -15,7 +15,7 @@ struct bitstream // read call. A negative number indicates that a read after the // end of the stream was attempted. int64_t bitsleft; - // Indicate an error occured while parsing the bitstream. + // Indicate an error occurred while parsing the bitstream. // This is meant to store high level syntax errors, i.e a function // using the bitstream functions found a syntax error. int error; diff --git a/src/lib_ccx/ffmpeg_intgr.c b/src/lib_ccx/ffmpeg_intgr.c index feb0cf9ee..0185c5b5b 100644 --- a/src/lib_ccx/ffmpeg_intgr.c +++ b/src/lib_ccx/ffmpeg_intgr.c @@ -145,9 +145,9 @@ void *init_ffmpeg(const char *path) /** * @param ctx context of ffmpeg - * @param data preallocated buffer where data will be recieved + * @param data preallocated buffer where data will be received * @param maxlen length of buffer, where data will be copied - * @return number of bytes recieved as data + * @return number of bytes received as data */ int ff_get_ccframe(void *arg, unsigned char *data, int maxlen) { diff --git a/src/lib_ccx/zvbi/raw_decoder.c b/src/lib_ccx/zvbi/raw_decoder.c index 24c88a56e..2161cef8d 100644 --- a/src/lib_ccx/zvbi/raw_decoder.c +++ b/src/lib_ccx/zvbi/raw_decoder.c @@ -1354,7 +1354,7 @@ vbi3_raw_decoder_services(vbi3_raw_decoder *rd) * $return * Set of data services $rd will be decode after the change. * Can be zero if the sampling parameters are invalid or some - * other error occured. + * other error occurred. */ /* Attn: strict must be int for compatibility with libzvbi 0.2 (-1 == 0) */ vbi_service_set diff --git a/src/thirdparty/win_spec_incld/dirent.h b/src/thirdparty/win_spec_incld/dirent.h index 7d425c233..aa481e99c 100644 --- a/src/thirdparty/win_spec_incld/dirent.h +++ b/src/thirdparty/win_spec_incld/dirent.h @@ -499,7 +499,7 @@ dirent_next( /* Got a file */ p = &dirp->data; } else { - /* The very last entry has been processed or an error occured */ + /* The very last entry has been processed or an error occurred */ FindClose (dirp->handle); dirp->handle = INVALID_HANDLE_VALUE; p = NULL; diff --git a/tests/README.md b/tests/README.md index ec35129e1..9c91fa727 100644 --- a/tests/README.md +++ b/tests/README.md @@ -34,7 +34,7 @@ gdb runtest # start under debugger: (gdb) run -# if segfault occured: +# if segfault occurred: (gdb) where ```