- May 16, 2022
-
-
So we can ensure we are not reading out of bounds Co-authored-by:
Steve Lhomme <robux4@ycbcr.xyz>
-
refs #16
-
Steve Lhomme authored
Either it really should be zero and it's checked on reading via SkipZeroBuf(). Either the value is unknown and we just skip it via SkipBuf(). The field values are not actually set, so should not be used by anyone. We keep the for reference of the size and structures they correspond to.
-
Steve Lhomme authored
The PTT search table contains the TTU offset for each SRPT and then all the PGCN/PGN values. Each block of PGCN/PGN starts at each TTU offset in the read buffer.
-
Steve Lhomme authored
Not all C compilers support Variable Length Array.
-
Steve Lhomme authored
-
Steve Lhomme authored
This will avoid potential typos and make refactoring easier.
-
Steve Lhomme authored
We should not rely on the host compiler having a certain type of packing. Clang for Windows doesn't support the GCC struct packing. We should never read directly into structures.
-
Steve Lhomme authored
The structures are already read bit by bits.
-
Steve Lhomme authored
The compiler using the library may not support the proper packing (CLang for Windows doesn't support the GCC packing).
-
Steve Lhomme authored
-
Steve Lhomme authored
-
Steve Lhomme authored
-
Steve Lhomme authored
-
Steve Lhomme authored
-
Steve Lhomme authored
-
Steve Lhomme authored
-
Steve Lhomme authored
-
Steve Lhomme authored
-
Steve Lhomme authored
-
Steve Lhomme authored
-
Steve Lhomme authored
-
Steve Lhomme authored
-
Steve Lhomme authored
-
Steve Lhomme authored
-
Steve Lhomme authored
-
Steve Lhomme authored
-
Steve Lhomme authored
-
Steve Lhomme authored
For now only for the bits by bits reading.
-
Steve Lhomme authored
-
Steve Lhomme authored
This is the size that is supposed to match the low level format, not the structure size. The structures on the other hand should be allocated with their own size.
-
Steve Lhomme authored
-
- May 15, 2022
-
-
Jean-Baptiste Kempf authored
Close #8 This was authorized by Eric Smith, original author of VOBDUMP, by email on May 15, 2022
-
Jean-Baptiste Kempf authored
-
Jean-Baptiste Kempf authored
-
According to [1] these 16 bits represent the "end address relative to command table". This corresponds to the last_byte check in other places. [1] http://dvd.sourceforge.net/dvdinfo/pgc.html#cmd
-
- Jan 03, 2022
-
-
It may not be in the end of the buffer anymore. The byte value used was always equivalent to > state->start[state->byte_position] << state->bit_position Also constify the read buffer.
-
-
The comments say it exists in the wild. calloc() may or may not return NULL in that case. Just use NULL but assume it's not an error.
-
Hugo Beauzée-Luyssen authored
to compute a canonical path
-