Changeset 8809c974 in ffmpeg


Ignore:
Timestamp:
Jan 14, 2015, 4:17:24 PM (10 years ago)
Author:
Vittorio Giovara <vittorio.giovara@gmail.com>
Branches:
master
Children:
06ec2f1d, 932788be
Parents:
f86f39cb
git-author:
Anton Khirnov <anton@khirnov.net> (01/10/15 08:39:32)
git-committer:
Vittorio Giovara <vittorio.giovara@gmail.com> (01/14/15 16:17:24)
Message:

id3v2: constify the 'tag' parameter to special metadata parsing callback

Those functions should not ever modify it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libavformat/id3v2.c

    rf86f39cb r8809c974  
    301301 */
    302302static void read_geobtag(AVFormatContext *s, AVIOContext *pb, int taglen,
    303                          char *tag, ID3v2ExtraMeta **extra_meta)
     303                         const char *tag, ID3v2ExtraMeta **extra_meta)
    304304{
    305305    ID3v2ExtraMetaGEOB *geob_data = NULL;
     
    433433
    434434static void read_apic(AVFormatContext *s, AVIOContext *pb, int taglen,
    435                       char *tag, ID3v2ExtraMeta **extra_meta)
     435                      const char *tag, ID3v2ExtraMeta **extra_meta)
    436436{
    437437    int enc, pic_type;
     
    509509    const char *tag3;
    510510    const char *tag4;
    511     void (*read)(AVFormatContext *, AVIOContext *, int, char *,
     511    void (*read)(AVFormatContext *, AVIOContext *, int, const char *,
    512512                 ID3v2ExtraMeta **);
    513513    void (*free)(void *obj);
Note: See TracChangeset for help on using the changeset viewer.