]> granicus.if.org Git - taglib/commit
Fix writing of new RIFF chunks at even positions
authorLukáš Lalinský <lalinsky@gmail.com>
Sun, 13 Feb 2011 10:27:56 +0000 (10:27 +0000)
committerLukáš Lalinský <lalinsky@gmail.com>
Sun, 13 Feb 2011 10:27:56 +0000 (10:27 +0000)
commitc21fd955ff51ae0c01c66cf182406535e818df67
treefdd77cd87bf958b1040a4426725ffc76c64e85f3
parentad0494bb7e958e80b079d3c392803ab41b9b8750
Fix writing of new RIFF chunks at even positions

If the last chunk had an odd size, the new chunk would have been written at
odd position, which is incorrect.

This is based on the patch by Jens Dyffort, but I ended up changing the
implementation to correctly handle subsequential updates to the file.

The whole RIFF code really needs to be rewritten in a different way...

BUG:243954

git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@1220223 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
taglib/riff/rifffile.cpp
taglib/riff/rifffile.h
tests/data/noise.aif [new file with mode: 0644]
tests/data/noise_odd.aif [new file with mode: 0644]
tests/test_riff.cpp