summaryrefslogtreecommitdiffstats
path: root/contrib/patch-mpeg4ip-pascal-str.patch
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/patch-mpeg4ip-pascal-str.patch')
-rw-r--r--contrib/patch-mpeg4ip-pascal-str.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/contrib/patch-mpeg4ip-pascal-str.patch b/contrib/patch-mpeg4ip-pascal-str.patch
new file mode 100644
index 000000000..4add6de51
--- /dev/null
+++ b/contrib/patch-mpeg4ip-pascal-str.patch
@@ -0,0 +1,24 @@
+--- lib/mp4v2/atom_avc1.cpp.orig 2007-07-24 02:19:41.000000000 -0400
++++ lib/mp4v2/atom_avc1.cpp 2007-07-24 02:19:44.000000000 -0400
+@@ -41,6 +41,7 @@
+ MP4StringProperty* pProp =
+ new MP4StringProperty("compressorName");
+ pProp->SetFixedLength(32);
++ pProp->SetCountedFormat(true);
+ pProp->SetValue("AVC Coding");
+ AddProperty(pProp); /* 6 */
+
+--- lib/mp4v2/mp4property.cpp.orig 2007-07-24 02:20:32.000000000 -0400
++++ lib/mp4v2/mp4property.cpp 2007-07-24 02:21:52.000000000 -0400
+@@ -391,6 +391,10 @@
+ if (m_useCountedFormat) {
+ pFile->WriteCountedString(m_values[index],
+ (m_useUnicode ? 2 : 1), m_useExpandedCount);
++ if (m_fixedLength) {
++ pFile->WriteBytes((u_int8_t*)m_values[index],
++ m_fixedLength - strlen(m_values[index]) - 1);
++ }
+ } else if (m_fixedLength) {
+ pFile->WriteBytes((u_int8_t*)m_values[index], m_fixedLength);
+ } else {
+