After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 575842 - MP4 tags are read incorrectly
MP4 tags are read incorrectly
Status: RESOLVED FIXED
Product: taglib-sharp
Classification: Other
Component: General
unspecified
Other Windows
: Normal major
: ---
Assigned To: Alexander Kojevnikov
taglib-sharp-maint
Depends on:
Blocks: 579946
 
 
Reported: 2009-03-18 15:03 UTC by Alexey Skalozub
Modified: 2010-09-09 00:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to fix mpeg4 file parsing of udta boxes. (12.14 KB, patch)
2010-06-08 21:16 UTC, Colin Turner
reviewed Details | Review
Patch to add new unit test class (14.78 KB, patch)
2010-06-09 21:27 UTC, Colin Turner
none Details | Review
sample.m4v file to add to samples directory (110.44 KB, application/x-zip-compressed)
2010-06-09 21:27 UTC, Colin Turner
  Details
Please use this unit test patch - original had a minor bug (14.87 KB, patch)
2010-06-09 21:39 UTC, Colin Turner
none Details | Review

Description Alexey Skalozub 2009-03-18 15:03:55 UTC
For some mp4 video files tags are completely absent.

When reading tags on mp4 file, TagLib.Mpeg4.FileParser takes in account only first 'udta' entry, while tags actually may appear in subsequent 'udta' entires.
Comment 1 Colin Turner 2010-06-08 21:16:44 UTC
Created attachment 163112 [details] [review]
Patch to fix mpeg4 file parsing of udta boxes.
Comment 2 Colin Turner 2010-06-08 21:21:30 UTC
I've run into the same problem.
See the previous entry for the patch.
The patch maintains a collection of udta boxes instead of just a single entry.
Comment 3 Gabriel Burt 2010-06-09 02:54:06 UTC
Review of attachment 163112 [details] [review]:

Thanks for the patch, Colin.  It looks good at a quick glance - no public API changes, good formatting.  Could you include one or more unit test that fails without your patch and passes with it?
Comment 4 Colin Turner 2010-06-09 21:26:38 UTC
Hi Gabriel,
I'm attaching 2 files.
The first is the patch to add the new unit test.
The 2nd is a zipped version of the sample.m4v file which should be placed in the samples directory.

The ReadTags unit test will fail with an older version of the library.

Thanks!
Comment 5 Colin Turner 2010-06-09 21:27:13 UTC
Created attachment 163232 [details] [review]
Patch to add new unit test class
Comment 6 Colin Turner 2010-06-09 21:27:58 UTC
Created attachment 163233 [details]
sample.m4v file to add to samples directory
Comment 7 Colin Turner 2010-06-09 21:39:56 UTC
Created attachment 163236 [details] [review]
Please use this unit test patch - original had a minor bug

Oops, the original unit test patch had an incorrect date. Please use this one instead.
Comment 8 Alexander Kojevnikov 2010-09-08 04:16:33 UTC
Thanks Colin, both patches look fine except:

 * There were many tabs/spaces and formatting inconsistencies
 * The line endings in tests.csproj have been changed
 * You forgot to add an entry to tests/Makefile.am

I committed corrected files to my github clone of taglib-sharp [1] and sent a pull request [2] to the main repository. I will close this bug when the request is merged.

[1] http://github.com/alexkay/taglib-sharp
[2] http://github.com/mono/taglib-sharp/pull/1
Comment 9 Colin Turner 2010-09-08 15:18:45 UTC
Alexander,
Thanks. I'll double check my editor settings next time.
Comment 10 Alexander Kojevnikov 2010-09-09 00:03:10 UTC
Pushed the commit, closing.