<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.12.0">
</HEAD>
<BODY>
Michael,<BR>
<BR>
Running out of space isn't an issue, as TagLib has some beautiful methods to change block sizes. The issue is the devalidation of a box that contains data offsets. This issue can be overcome by finding the new size difference and then overwriting the content offset box.<BR>
<BR>
- Brian<BR>
<BR>
On Fri, 2006-09-29 at 13:06 +0100, Michael wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Jochen,</FONT>
<FONT COLOR="#000000">If I understand the issue correctly, the problem with writing MOOV only </FONT>
<FONT COLOR="#000000">arises when a user edits the metadata and it ends up bigger in size than </FONT>
<FONT COLOR="#000000">it was before so you run out space in between FTYP and MDAT.</FONT>
<FONT COLOR="#000000">Now, wouldn't it be convenient to write a temp file where you can nicely </FONT>
<FONT COLOR="#000000">store the atoms in the right order (and maybe add some padding after the </FONT>
<FONT COLOR="#000000">metadata for future editing)? Some developers have chosen this route </FONT>
<FONT COLOR="#000000">anyway because you don't risk wrecking a file when the app or computer </FONT>
<FONT COLOR="#000000">crashes while writing.</FONT>
<FONT COLOR="#000000">About checking or reviewing, I'd be happy to help as much as I can. I </FONT>
<FONT COLOR="#000000">must say I'm a bit handicapped right now because I'm separated from all </FONT>
<FONT COLOR="#000000">my own computers by a sea for the next few months. :) I'm using the </FONT>
<FONT COLOR="#000000">Powerbook of a friend to browse and e-mail and miss some of my own </FONT>
<FONT COLOR="#000000">stuff. Still worth a try though. Good luck and keep me posted!</FONT>
<FONT COLOR="#000000">Regards,</FONT>
<FONT COLOR="#000000">Michael</FONT>
<FONT COLOR="#000000">Jochen Issing wrote:</FONT>
<FONT COLOR="#000000">> Michael,</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> thanks for the detailed information. I actually thought about the "solution" </FONT>
<FONT COLOR="#000000">> for implementation as well, although I didn't have such detailed information </FONT>
<FONT COLOR="#000000">> about nero and foobar2000; I just wanted to figure out, how it was done by </FONT>
<FONT COLOR="#000000">> Brian. Maybe, if I can finish it, you can review/check the implementation?</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> Best Regards,</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> jochen</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">_______________________________________________</FONT>
<FONT COLOR="#000000">taglib-devel mailing list</FONT>
<FONT COLOR="#000000"><A HREF="mailto:taglib-devel@kde.org">taglib-devel@kde.org</A></FONT>
<FONT COLOR="#000000"><A HREF="https://mail.kde.org/mailman/listinfo/taglib-devel">https://mail.kde.org/mailman/listinfo/taglib-devel</A></FONT>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>