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
8809c974
Commit
8809c974
authored
Jan 10, 2015
by
Anton Khirnov
Committed by
Vittorio Giovara
Jan 14, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
id3v2: constify the 'tag' parameter to special metadata parsing callback
Those functions should not ever modify it.
parent
f86f39cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
id3v2.c
libavformat/id3v2.c
+3
-3
No files found.
libavformat/id3v2.c
View file @
8809c974
...
...
@@ -300,7 +300,7 @@ static void read_ttag(AVFormatContext *s, AVIOContext *pb, int taglen,
* Parse GEOB tag into a ID3v2ExtraMetaGEOB struct.
*/
static
void
read_geobtag
(
AVFormatContext
*
s
,
AVIOContext
*
pb
,
int
taglen
,
char
*
tag
,
ID3v2ExtraMeta
**
extra_meta
)
c
onst
c
har
*
tag
,
ID3v2ExtraMeta
**
extra_meta
)
{
ID3v2ExtraMetaGEOB
*
geob_data
=
NULL
;
ID3v2ExtraMeta
*
new_extra
=
NULL
;
...
...
@@ -432,7 +432,7 @@ static void free_apic(void *obj)
}
static
void
read_apic
(
AVFormatContext
*
s
,
AVIOContext
*
pb
,
int
taglen
,
char
*
tag
,
ID3v2ExtraMeta
**
extra_meta
)
c
onst
c
har
*
tag
,
ID3v2ExtraMeta
**
extra_meta
)
{
int
enc
,
pic_type
;
char
mimetype
[
64
];
...
...
@@ -508,7 +508,7 @@ fail:
typedef
struct
ID3v2EMFunc
{
const
char
*
tag3
;
const
char
*
tag4
;
void
(
*
read
)(
AVFormatContext
*
,
AVIOContext
*
,
int
,
char
*
,
void
(
*
read
)(
AVFormatContext
*
,
AVIOContext
*
,
int
,
c
onst
c
har
*
,
ID3v2ExtraMeta
**
);
void
(
*
free
)(
void
*
obj
);
}
ID3v2EMFunc
;
...
...
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