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
2d1a1a7f
Commit
2d1a1a7f
authored
Sep 01, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mp3dec: use named constants for Xing header flags
parent
9bf41210
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
mp3dec.c
libavformat/mp3dec.c
+5
-2
No files found.
libavformat/mp3dec.c
View file @
2d1a1a7f
...
...
@@ -29,6 +29,9 @@
#include "id3v1.h"
#include "libavcodec/mpegaudiodecheader.h"
#define XING_FLAG_FRAMES 0x01
#define XING_FLAG_SIZE 0x02
/* mp3 read */
static
int
mp3_read_probe
(
AVProbeData
*
p
)
...
...
@@ -117,9 +120,9 @@ static int mp3_parse_vbr_tags(AVFormatContext *s, AVStream *st, int64_t base)
v
=
avio_rb32
(
s
->
pb
);
if
(
v
==
MKBETAG
(
'X'
,
'i'
,
'n'
,
'g'
)
||
v
==
MKBETAG
(
'I'
,
'n'
,
'f'
,
'o'
))
{
v
=
avio_rb32
(
s
->
pb
);
if
(
v
&
0x1
)
if
(
v
&
XING_FLAG_FRAMES
)
frames
=
avio_rb32
(
s
->
pb
);
if
(
v
&
0x2
)
if
(
v
&
XING_FLAG_SIZE
)
size
=
avio_rb32
(
s
->
pb
);
}
...
...
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