Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
3b78c180
Commit
3b78c180
authored
Oct 10, 2011
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
id3v2: cosmetics: move some declarations before the places they are used
parent
617a51f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
65 additions
and
65 deletions
+65
-65
id3v2.c
libavformat/id3v2.c
+65
-65
No files found.
libavformat/id3v2.c
View file @
3b78c180
...
...
@@ -26,6 +26,66 @@
#include "libavutil/dict.h"
#include "avio_internal.h"
const
AVMetadataConv
ff_id3v2_34_metadata_conv
[]
=
{
{
"TALB"
,
"album"
},
{
"TCOM"
,
"composer"
},
{
"TCON"
,
"genre"
},
{
"TCOP"
,
"copyright"
},
{
"TENC"
,
"encoded_by"
},
{
"TIT2"
,
"title"
},
{
"TLAN"
,
"language"
},
{
"TPE1"
,
"artist"
},
{
"TPE2"
,
"album_artist"
},
{
"TPE3"
,
"performer"
},
{
"TPOS"
,
"disc"
},
{
"TPUB"
,
"publisher"
},
{
"TRCK"
,
"track"
},
{
"TSSE"
,
"encoder"
},
{
0
}
};
const
AVMetadataConv
ff_id3v2_4_metadata_conv
[]
=
{
{
"TDRL"
,
"date"
},
{
"TDRC"
,
"date"
},
{
"TDEN"
,
"creation_time"
},
{
"TSOA"
,
"album-sort"
},
{
"TSOP"
,
"artist-sort"
},
{
"TSOT"
,
"title-sort"
},
{
0
}
};
const
AVMetadataConv
ff_id3v2_2_metadata_conv
[]
=
{
{
"TAL"
,
"album"
},
{
"TCO"
,
"genre"
},
{
"TT2"
,
"title"
},
{
"TEN"
,
"encoded_by"
},
{
"TP1"
,
"artist"
},
{
"TP2"
,
"album_artist"
},
{
"TP3"
,
"performer"
},
{
"TRK"
,
"track"
},
{
0
}
};
const
char
ff_id3v2_tags
[][
4
]
=
{
"TALB"
,
"TBPM"
,
"TCOM"
,
"TCON"
,
"TCOP"
,
"TDLY"
,
"TENC"
,
"TEXT"
,
"TFLT"
,
"TIT1"
,
"TIT2"
,
"TIT3"
,
"TKEY"
,
"TLAN"
,
"TLEN"
,
"TMED"
,
"TOAL"
,
"TOFN"
,
"TOLY"
,
"TOPE"
,
"TOWN"
,
"TPE1"
,
"TPE2"
,
"TPE3"
,
"TPE4"
,
"TPOS"
,
"TPUB"
,
"TRCK"
,
"TRSN"
,
"TRSO"
,
"TSRC"
,
"TSSE"
,
{
0
},
};
const
char
ff_id3v2_4_tags
[][
4
]
=
{
"TDEN"
,
"TDOR"
,
"TDRC"
,
"TDRL"
,
"TDTG"
,
"TIPL"
,
"TMCL"
,
"TMOO"
,
"TPRO"
,
"TSOA"
,
"TSOP"
,
"TSOT"
,
"TSST"
,
{
0
},
};
const
char
ff_id3v2_3_tags
[][
4
]
=
{
"TDAT"
,
"TIME"
,
"TORY"
,
"TRDA"
,
"TSIZ"
,
"TYER"
,
{
0
},
};
int
ff_id3v2_match
(
const
uint8_t
*
buf
,
const
char
*
magic
)
{
return
buf
[
0
]
==
magic
[
0
]
&&
...
...
@@ -320,6 +380,11 @@ finish:
av_dict_set
(
m
,
"date"
,
date
,
0
);
}
const
ID3v2EMFunc
ff_id3v2_extra_meta_funcs
[]
=
{
{
"GEO"
,
"GEOB"
,
read_geobtag
,
free_geobtag
},
{
NULL
}
};
/**
* Get the corresponding ID3v2EMFunc struct for a tag.
* @param isv34 Determines if v2.2 or v2.3/4 strings are used
...
...
@@ -518,68 +583,3 @@ void ff_id3v2_free_extra_meta(ID3v2ExtraMeta **extra_meta)
current
=
next
;
}
}
const
ID3v2EMFunc
ff_id3v2_extra_meta_funcs
[]
=
{
{
"GEO"
,
"GEOB"
,
read_geobtag
,
free_geobtag
},
{
NULL
}
};
const
AVMetadataConv
ff_id3v2_34_metadata_conv
[]
=
{
{
"TALB"
,
"album"
},
{
"TCOM"
,
"composer"
},
{
"TCON"
,
"genre"
},
{
"TCOP"
,
"copyright"
},
{
"TENC"
,
"encoded_by"
},
{
"TIT2"
,
"title"
},
{
"TLAN"
,
"language"
},
{
"TPE1"
,
"artist"
},
{
"TPE2"
,
"album_artist"
},
{
"TPE3"
,
"performer"
},
{
"TPOS"
,
"disc"
},
{
"TPUB"
,
"publisher"
},
{
"TRCK"
,
"track"
},
{
"TSSE"
,
"encoder"
},
{
0
}
};
const
AVMetadataConv
ff_id3v2_4_metadata_conv
[]
=
{
{
"TDRL"
,
"date"
},
{
"TDRC"
,
"date"
},
{
"TDEN"
,
"creation_time"
},
{
"TSOA"
,
"album-sort"
},
{
"TSOP"
,
"artist-sort"
},
{
"TSOT"
,
"title-sort"
},
{
0
}
};
const
AVMetadataConv
ff_id3v2_2_metadata_conv
[]
=
{
{
"TAL"
,
"album"
},
{
"TCO"
,
"genre"
},
{
"TT2"
,
"title"
},
{
"TEN"
,
"encoded_by"
},
{
"TP1"
,
"artist"
},
{
"TP2"
,
"album_artist"
},
{
"TP3"
,
"performer"
},
{
"TRK"
,
"track"
},
{
0
}
};
const
char
ff_id3v2_tags
[][
4
]
=
{
"TALB"
,
"TBPM"
,
"TCOM"
,
"TCON"
,
"TCOP"
,
"TDLY"
,
"TENC"
,
"TEXT"
,
"TFLT"
,
"TIT1"
,
"TIT2"
,
"TIT3"
,
"TKEY"
,
"TLAN"
,
"TLEN"
,
"TMED"
,
"TOAL"
,
"TOFN"
,
"TOLY"
,
"TOPE"
,
"TOWN"
,
"TPE1"
,
"TPE2"
,
"TPE3"
,
"TPE4"
,
"TPOS"
,
"TPUB"
,
"TRCK"
,
"TRSN"
,
"TRSO"
,
"TSRC"
,
"TSSE"
,
{
0
},
};
const
char
ff_id3v2_4_tags
[][
4
]
=
{
"TDEN"
,
"TDOR"
,
"TDRC"
,
"TDRL"
,
"TDTG"
,
"TIPL"
,
"TMCL"
,
"TMOO"
,
"TPRO"
,
"TSOA"
,
"TSOP"
,
"TSOT"
,
"TSST"
,
{
0
},
};
const
char
ff_id3v2_3_tags
[][
4
]
=
{
"TDAT"
,
"TIME"
,
"TORY"
,
"TRDA"
,
"TSIZ"
,
"TYER"
,
{
0
},
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment