Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
393fd0d8
Commit
393fd0d8
authored
Feb 25, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
id3v2: remove unused ff_id3v2_read().
Rename ff_id3v2_read_all to ff_id3v2_read().
parent
079ea6ca
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
15 deletions
+5
-15
id3v2.c
libavformat/id3v2.c
+1
-6
id3v2.h
libavformat/id3v2.h
+2
-7
omadec.c
libavformat/omadec.c
+1
-1
utils.c
libavformat/utils.c
+1
-1
No files found.
libavformat/id3v2.c
View file @
393fd0d8
...
...
@@ -653,7 +653,7 @@ seek:
return
;
}
void
ff_id3v2_read
_all
(
AVFormatContext
*
s
,
const
char
*
magic
,
ID3v2ExtraMeta
**
extra_meta
)
void
ff_id3v2_read
(
AVFormatContext
*
s
,
const
char
*
magic
,
ID3v2ExtraMeta
**
extra_meta
)
{
int
len
,
ret
;
uint8_t
buf
[
ID3v2_HEADER_SIZE
];
...
...
@@ -684,11 +684,6 @@ void ff_id3v2_read_all(AVFormatContext *s, const char *magic, ID3v2ExtraMeta **e
merge_date
(
&
s
->
metadata
);
}
void
ff_id3v2_read
(
AVFormatContext
*
s
,
const
char
*
magic
)
{
ff_id3v2_read_all
(
s
,
magic
,
NULL
);
}
void
ff_id3v2_free_extra_meta
(
ID3v2ExtraMeta
**
extra_meta
)
{
ID3v2ExtraMeta
*
current
=
*
extra_meta
,
*
next
;
...
...
libavformat/id3v2.h
View file @
393fd0d8
...
...
@@ -84,16 +84,11 @@ int ff_id3v2_match(const uint8_t *buf, const char *magic);
int
ff_id3v2_tag_len
(
const
uint8_t
*
buf
);
/**
* Read an ID3v2 tag (text tags only)
*/
void
ff_id3v2_read
(
AVFormatContext
*
s
,
const
char
*
magic
);
/**
* Read an ID3v2 tag, including supported extra metadata (currently only GEOB)
* Read an ID3v2 tag, including supported extra metadata
* @param extra_meta If not NULL, extra metadata is parsed into a list of
* ID3v2ExtraMeta structs and *extra_meta points to the head of the list
*/
void
ff_id3v2_read
_all
(
AVFormatContext
*
s
,
const
char
*
magic
,
ID3v2ExtraMeta
**
extra_meta
);
void
ff_id3v2_read
(
AVFormatContext
*
s
,
const
char
*
magic
,
ID3v2ExtraMeta
**
extra_meta
);
/**
* Write an ID3v2 tag.
...
...
libavformat/omadec.c
View file @
393fd0d8
...
...
@@ -267,7 +267,7 @@ static int oma_read_header(AVFormatContext *s)
ID3v2ExtraMeta
*
extra_meta
=
NULL
;
OMAContext
*
oc
=
s
->
priv_data
;
ff_id3v2_read
_all
(
s
,
ID3v2_EA3_MAGIC
,
&
extra_meta
);
ff_id3v2_read
(
s
,
ID3v2_EA3_MAGIC
,
&
extra_meta
);
ret
=
avio_read
(
s
->
pb
,
buf
,
EA3_HEADER_SIZE
);
if
(
ret
<
EA3_HEADER_SIZE
)
return
-
1
;
...
...
libavformat/utils.c
View file @
393fd0d8
...
...
@@ -563,7 +563,7 @@ int avformat_open_input(AVFormatContext **ps, const char *filename, AVInputForma
/* e.g. AVFMT_NOFILE formats will not have a AVIOContext */
if
(
s
->
pb
)
ff_id3v2_read
_all
(
s
,
ID3v2_DEFAULT_MAGIC
,
&
id3v2_extra_meta
);
ff_id3v2_read
(
s
,
ID3v2_DEFAULT_MAGIC
,
&
id3v2_extra_meta
);
if
(
s
->
iformat
->
read_header
)
if
((
ret
=
s
->
iformat
->
read_header
(
s
))
<
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