Skip to content

Commit

Permalink
[bug] Fix string size in UDF2.5 FID
Browse files Browse the repository at this point in the history
File or directory names in Field Identifier Descriptors are not fixed size, therefore the string size byte does not need to be added at the end of the string.
This is fixed by omitting one byte before padding with zero bytes.
  • Loading branch information
jcdr428 committed Dec 7, 2021
1 parent 27b6dfd commit aeb5802
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tsMuxer/iso_writer.cpp
Expand Up @@ -279,6 +279,7 @@ void ByteFileWriter::writeDString(const std::string& value, int len) { writeDStr

void ByteFileWriter::doPadding(int padSize)
{
m_curpos--;
int rest = (m_curPos - m_buffer) % padSize;
if (rest)
{
Expand Down

0 comments on commit aeb5802

Please sign in to comment.