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
173c975e
Commit
173c975e
authored
Apr 26, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mp3enc: remove unneeded static const variables.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
d62bf5d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
mp3enc.c
libavformat/mp3enc.c
+3
-8
No files found.
libavformat/mp3enc.c
View file @
173c975e
...
...
@@ -207,11 +207,6 @@ static int id3v2_check_write_tag(AVFormatContext *s, AVMetadataTag *t, const cha
}
static
const
int64_t
xing_offtbl
[
2
][
2
]
=
{{
32
,
17
},
{
17
,
9
}};
static
const
uint32_t
XING
=
MKBETAG
(
'X'
,
'i'
,
'n'
,
'g'
);
#ifdef FILTER_VBR_HEADERS
static
const
uint32_t
INFO
=
MKBETAG
(
'I'
,
'n'
,
'f'
,
'o'
);
static
const
uint32_t
VBRI
=
MKBETAG
(
'V'
,
'B'
,
'R'
,
'I'
);
#endif
/*
* Write an empty XING header and initialize respective data.
...
...
@@ -274,7 +269,7 @@ static int mp3_write_xing(AVFormatContext *s)
avio_wb32
(
s
->
pb
,
header
);
ffio_fill
(
s
->
pb
,
0
,
xing_offset
);
avio_wb32
(
s
->
pb
,
XING
);
avio_wb32
(
s
->
pb
,
MKBETAG
(
'X'
,
'i'
,
'n'
,
'g'
)
);
avio_wb32
(
s
->
pb
,
0x01
|
0x02
|
0x04
);
// frames/size/toc
mp3
->
xing_header
.
offset
=
avio_tell
(
s
->
pb
);
...
...
@@ -430,14 +425,14 @@ static int mp3_write_packet(AVFormatContext *s, AVPacket *pkt)
if
(
base
+
4
<=
pkt
->
size
)
{
uint32_t
v
=
AV_RB32
(
pkt
->
data
+
base
);
if
(
XING
==
v
||
INFO
==
v
)
if
(
MKBETAG
(
'X'
,
'i'
,
'n'
,
'g'
)
==
v
||
MKBETAG
(
'I'
,
'n'
,
'f'
,
'o'
)
==
v
)
return
0
;
}
/* filter out VBRI headers. */
base
=
4
+
32
;
if
(
base
+
4
<=
pkt
->
size
&&
VBRI
==
AV_RB32
(
pkt
->
data
+
base
))
if
(
base
+
4
<=
pkt
->
size
&&
MKBETAG
(
'V'
,
'B'
,
'R'
,
'I'
)
==
AV_RB32
(
pkt
->
data
+
base
))
return
0
;
#endif
...
...
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