• Peter Ross's avatar
    ff_id3v2_read: add option to limit ID3 magic number search · 7269ab10
    Peter Ross authored
    Several chunked formats (AIFF, IFF,DSF) store ID3 metadata within an 'ID3 '
    chunk tag. If such chunks are stored sequentially, it is possible for the
    ID3v2 parser to confuse the chunk tag for the ID3 magic number. e.g.
    
    [1st chunk tag ('ID3 ') | chunk size] [ID3 magic number | metadata ...]
    [2nd chunk tag ('ID3 ') | chunk size] [ID3 magic number | metadata ...]
    
    Fixes ticket #3530.
    Signed-off-by: 's avatarPeter Ross <pross@xvid.org>
    Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
    (cherry picked from commit 5331773c)
    
    Conflicts:
    	libavformat/dsfdec.c
    	libavformat/id3v2.c
    7269ab10
id3v2.c 26 KB