diff options
author | jbrjake <[email protected]> | 2007-07-24 16:14:47 +0000 |
---|---|---|
committer | jbrjake <[email protected]> | 2007-07-24 16:14:47 +0000 |
commit | f91755c43a608fec95c1c81413714f08cbec050d (patch) | |
tree | 50c556dac9abaf1a1ef902971dfc652ec2b86cc0 /contrib/patch-mpeg4ip-pascal-str.patch | |
parent | 047bfe28f4949d7646f3acaa581f60bcba45bd44 (diff) |
Patches mpeg4ip to write the compressor name correctly for h.264 (so it reads "AVC Coding" instead of a garbage string.
Credit goes to Yuvi and the rest of the Perian team (see ticket 226 on trac.perian.org ). Thanks!
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@725 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'contrib/patch-mpeg4ip-pascal-str.patch')
-rw-r--r-- | contrib/patch-mpeg4ip-pascal-str.patch | 24 |
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 { + |