Changeset f06a603621a4ff672e760a698a75f15d28da6c75

Show
Ignore:
Timestamp:
10/03/07 23:07:01 (1 year ago)
Author:
Rafaël Carré <funman@videolan.org>
git-committer:
Rafaël Carré <funman@videolan.org> 1191445621 +0000
git-parent:

[f3fce2ada1f86438b566a73379b34c7028e1d06b]

git-author:
Rafaël Carré <funman@videolan.org> 1191445621 +0000
Message:

taglib: warn the user when the embedded image is invalid (i.e. was embedded by a broken version of iTunes)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/meta_engine/taglib.cpp

    re72a013 rf06a603  
    120120 
    121121            psz_mime = p_apic->mimeType().toCString(true); 
     122 
     123            /* some old iTunes version not only sets incorrectly the mime type 
     124             * but also embeds incorrectly the image. 
     125             * Recent versions seem to behave correctly */ 
     126            if( !strncmp( psz_mime, "PNG", 3 ) ) 
     127            { 
     128                msg_Warn( p_demux, 
     129                    "%s: Invalid picture embedded by broken iTunes version", 
     130                    f.file()->name() ); 
     131                break; 
     132            } 
     133 
    122134            psz_description = p_apic->description().toCString(true); 
    123135            psz_name = psz_description;