[libdvdnav-devel] [Git][videolan/libdvdread][master] Fix typos found by codespell

Petri Hintukainen (@hpi) gitlab at videolan.org
Tue Oct 26 06:05:26 UTC 2021



Petri Hintukainen pushed to branch master at VideoLAN / libdvdread


Commits:
872f4ef8 by Dimitri Papadopoulos at 2021-10-26T09:00:38+03:00
Fix typos found by codespell

- - - - -


10 changed files:

- NEWS
- configure.ac
- src/dvd_udf.c
- src/dvdread/dvd_reader.h
- src/dvdread/ifo_read.h
- src/dvdread/ifo_types.h
- src/dvdread/nav_read.h
- src/dvdread/nav_types.h
- src/ifo_read.c
- src/nav_print.c


Changes:

=====================================
NEWS
=====================================
@@ -84,7 +84,7 @@ libdvdread (4.2.0)
   * fixed segfault when reading certain DVDs, for example "Thor"
 
 libdvdread (4.1.3)
-  * an embarassing amount of fixes regarding potential memory and resource leaks
+  * an embarrassing amount of fixes regarding potential memory and resource leaks
     (patches contributed by Erik Hovland)
   * added dvdread-config (dvdnav-config's younger brother)
   * added pkgconfig support
@@ -105,7 +105,7 @@ libdvdnav (4.1.1)
     dvdnav_{title,part}_play() works again
   * removed wrong SPU stream change event filter
     (fixes unwanted subtitles in the trailer of "Girl, interrupted", RC2)
-  * fixed error "Expected NAV packet but none found." occuring sometimes
+  * fixed error "Expected NAV packet but none found." occurring sometimes
     on resume from menu
 
 libdvdnav (0.1.10)
@@ -139,7 +139,7 @@ libdvdnav (0.1.6) unstable; urgency=low
   * method to try-run VM operations, now used for safer chapter skipping and menu jumps
   * fixed detection of current PTT to not assume a 1:1 mapping between PTTs and PGs
   * releasing stills when jumping to menu fixes some state inconsistencies
-  * do not assume PGs to be physically layed out in sequence on the disc
+  * do not assume PGs to be physically laid out in sequence on the disc
   * optional PGC based seeking
   * new event on cell changes for timing info
 


=====================================
configure.ac
=====================================
@@ -98,7 +98,7 @@ CC_CHECK_CFLAGS_APPEND([-Wall -Wsign-compare -Wextra])
 
 
 AC_ARG_ENABLE([apidoc],
-  AS_HELP_STRING([--disable-apidoc], [Disable building (with Doxygen) and intalling API documentation @<:@default=auto@:@>]))
+  AS_HELP_STRING([--disable-apidoc], [Disable building (with Doxygen) and installing API documentation @<:@default=auto@:@>]))
 
 AC_PATH_PROG([DOXYGEN], [doxygen])
 


=====================================
src/dvd_udf.c
=====================================
@@ -324,7 +324,7 @@ static int SetUDFCache(dvd_reader_t *ctx, UDFCacheType type,
                   | ((uint32_t)data[(p) + 1] << 8)      \
                   | ((uint32_t)data[(p) + 2] << 16)     \
                   | ((uint32_t)data[(p) + 3] << 24))
-/* This is wrong with regard to endianess */
+/* This is wrong with regard to endianness */
 #define GETN(p, n, target) memcpy(target, &data[p], n)
 
 static int Unicodedecode( uint8_t *data, int len, char *target )


=====================================
src/dvdread/dvd_reader.h
=====================================
@@ -262,7 +262,7 @@ int32_t DVDFileSeek( dvd_file_t *, int32_t );
 /**
  * Reads the given number of bytes from the file.  This call can only be used
  * on the information files, and may not be used for reading from a VOB.  This
- * reads from and increments the currrent seek position for the file.
+ * reads from and increments the current seek position for the file.
  *
  * @param dvd_file  A file read handle.
  * @param data Pointer to a buffer to write the data into.


=====================================
src/dvdread/ifo_read.h
=====================================
@@ -144,7 +144,7 @@ int ifoRead_PGCI_UT(ifo_handle_t *);
  *
  * Reads in the VTS Time Map Table, this data is only located in the video
  * title set information file.  This fills the ifofile->vts_tmapt structure
- * and all its substructures.  When pressent enables VOBU level time-based
+ * and all its substructures.  When present enables VOBU level time-based
  * seeking for One_Sequential_PGC_Titles.
  */
 int ifoRead_VTS_TMAPT(ifo_handle_t *);


=====================================
src/dvdread/ifo_types.h
=====================================
@@ -565,7 +565,7 @@ typedef struct {
   uint8_t unknown1;
   uint8_t unknown2;
   uint8_t unknown3;
-  uint8_t unknown4; /* ?? allways 0x30 language?, text format? */
+  uint8_t unknown4; /* ?? always 0x30 language?, text format? */
   uint8_t unknown5;
   uint16_t offset; /* from first */
 


=====================================
src/dvdread/nav_read.h
=====================================
@@ -35,7 +35,7 @@ extern "C" {
  * Reads the PCI packet data pointed to into th pci struct.
  *
  * @param pci Pointer to the PCI data structure to be filled in.
- * @param bufffer Pointer to the buffer of the on disc PCI data.
+ * @param buffer Pointer to the buffer of the on disc PCI data.
  */
 void navRead_PCI(pci_t *, unsigned char *);
 
@@ -43,7 +43,7 @@ void navRead_PCI(pci_t *, unsigned char *);
  * Reads the DSI packet data pointed to into dsi struct.
  *
  * @param dsi Pointer to the DSI data structure to be filled in.
- * @param bufffer Pointer to the buffer of the on disc DSI data.
+ * @param buffer Pointer to the buffer of the on disc DSI data.
  */
 void navRead_DSI(dsi_t *, unsigned char *);
 


=====================================
src/dvdread/nav_types.h
=====================================
@@ -96,7 +96,7 @@ typedef struct {
 
 /**
  * Button Color Information Table
- * Each entry beeing a 32bit word that contains the color indexs and alpha
+ * Each entry is a 32bit word that contains the color indices and alpha
  * values to use.  They are all represented by 4 bit number and stored
  * like this [Ci3, Ci2, Ci1, Ci0, A3, A2, A1, A0].   The actual palette
  * that the indexes reference is in the PGC.


=====================================
src/ifo_read.c
=====================================
@@ -1937,7 +1937,7 @@ static int ifoRead_PGCIT_internal(ifo_handle_t *ifofile, pgcit_t *pgcit,
     if(!ifoRead_PGC(ifofile, pgcit->pgci_srp[i].pgc,
                     offset + pgcit->pgci_srp[i].pgc_start_byte)) {
       Log0(ifop->ctx, "Unable to read invalid PCG");
-      //E-One releases provide boggus PGC, ie: out of bound start_byte
+      //E-One releases provide bogus PGC, ie: out of bound start_byte
       free(pgcit->pgci_srp[i].pgc);
       pgcit->pgci_srp[i].pgc = NULL;
     }
@@ -2265,7 +2265,7 @@ int ifoRead_VTS_ATRT(ifo_handle_t *ifofile) {
       return 0;
     }
 
-    /* This assert cant be in ifoRead_VTS_ATTRIBUTES */
+    /* This assert can't be in ifoRead_VTS_ATTRIBUTES */
     CHECK_VALUE(offset + vts_atrt->vts[i].last_byte <= vts_atrt->last_byte + 1);
     /* Is this check correct? */
   }


=====================================
src/nav_print.c
=====================================
@@ -3,7 +3,7 @@
  *
  * Much of the contents in this file is based on VOBDUMP.
  *
- * VOBDUMP: a program for examining DVD .VOB filse
+ * VOBDUMP: a program for examining DVD .VOB files
  *
  * Copyright 1998, 1999 Eric Smith <eric at brouhaha.com>
  *



View it on GitLab: https://code.videolan.org/videolan/libdvdread/-/commit/872f4ef8d4fa6d00d0832bc5bcd144c91255e38a

-- 
View it on GitLab: https://code.videolan.org/videolan/libdvdread/-/commit/872f4ef8d4fa6d00d0832bc5bcd144c91255e38a
You're receiving this email because of your account on code.videolan.org.




More information about the libdvdnav-devel mailing list