[matroska] r980 - trunk/DvdMenuXtractor
[email protected] Thu, 16 Dec 2004 16:41:20 +0300 (MSK)
Newsgroups
gmane.comp.multimedia.matroska.cvs
Message-ID
<[email protected] >
Author: robux4
Date: 2004-12-16 16:41:20 +0300 (Thu, 16 Dec 2004)
New Revision: 980
Modified:
trunk/DvdMenuXtractor/VobParser.h
Log:
DMX: pad the button file header to 16 bytes
Modified: trunk/DvdMenuXtractor/VobParser.h
===================================================================
--- trunk/DvdMenuXtractor/VobParser.h 2004-12-16 13:28:20 UTC (rev 979)
+++ trunk/DvdMenuXtractor/VobParser.h 2004-12-16 13:41:20 UTC (rev 980)
@@ -439,11 +439,18 @@
m_file = OpenOuputFile();
fwrite("butonDVD", 8, 1, m_file);
uint8_t _tmp[4];
+ // width & height
_tmp[0] = m_width >> 8;
_tmp[1] = m_width & 0xFF;
_tmp[2] = m_height >> 8;
_tmp[3] = m_height & 0xFF;
fwrite(_tmp, 4, 1, m_file);
+ // pad to 16 bytes
+ _tmp[0] = 0;
+ _tmp[1] = 0;
+ _tmp[2] = 0;
+ _tmp[3] = 0;
+ fwrite(_tmp, 4, 1, m_file);
}
Write(buff,size, start_time, end_time, debug);
}