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
e1e8a8de
Commit
e1e8a8de
authored
Apr 26, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mp3enc:better variable name for the frames field file postion.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
4382bc2c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
mp3enc.c
libavformat/mp3enc.c
+5
-5
No files found.
libavformat/mp3enc.c
View file @
e1e8a8de
...
@@ -163,7 +163,7 @@ AVOutputFormat ff_mp2_muxer = {
...
@@ -163,7 +163,7 @@ AVOutputFormat ff_mp2_muxer = {
typedef
struct
MP3Context
{
typedef
struct
MP3Context
{
const
AVClass
*
class
;
const
AVClass
*
class
;
int
id3v2_version
;
int
id3v2_version
;
int64_t
offset
;
int64_t
frames_
offset
;
int32_t
frames
;
int32_t
frames
;
int32_t
size
;
int32_t
size
;
uint32_t
want
;
uint32_t
want
;
...
@@ -266,7 +266,7 @@ static int mp3_write_xing(AVFormatContext *s)
...
@@ -266,7 +266,7 @@ static int mp3_write_xing(AVFormatContext *s)
avio_wb32
(
s
->
pb
,
MKBETAG
(
'X'
,
'i'
,
'n'
,
'g'
));
avio_wb32
(
s
->
pb
,
MKBETAG
(
'X'
,
'i'
,
'n'
,
'g'
));
avio_wb32
(
s
->
pb
,
0x01
|
0x02
|
0x04
);
// frames/size/toc
avio_wb32
(
s
->
pb
,
0x01
|
0x02
|
0x04
);
// frames/size/toc
mp3
->
offset
=
avio_tell
(
s
->
pb
);
mp3
->
frames_
offset
=
avio_tell
(
s
->
pb
);
mp3
->
size
=
c
.
frame_size
;
mp3
->
size
=
c
.
frame_size
;
mp3
->
want
=
1
;
mp3
->
want
=
1
;
mp3
->
seen
=
0
;
mp3
->
seen
=
0
;
...
@@ -321,7 +321,7 @@ static void mp3_fix_xing(AVFormatContext *s)
...
@@ -321,7 +321,7 @@ static void mp3_fix_xing(AVFormatContext *s)
int
i
;
int
i
;
avio_flush
(
s
->
pb
);
avio_flush
(
s
->
pb
);
avio_seek
(
s
->
pb
,
mp3
->
offset
,
SEEK_SET
);
avio_seek
(
s
->
pb
,
mp3
->
frames_
offset
,
SEEK_SET
);
avio_wb32
(
s
->
pb
,
mp3
->
frames
);
avio_wb32
(
s
->
pb
,
mp3
->
frames
);
avio_wb32
(
s
->
pb
,
mp3
->
size
);
avio_wb32
(
s
->
pb
,
mp3
->
size
);
...
@@ -420,7 +420,7 @@ static int mp3_write_packet(AVFormatContext *s, AVPacket *pkt)
...
@@ -420,7 +420,7 @@ static int mp3_write_packet(AVFormatContext *s, AVPacket *pkt)
return
0
;
return
0
;
#endif
#endif
if
(
0
<
mp3
->
offset
)
if
(
0
<
mp3
->
frames_
offset
)
mp3_xing_add_frame
(
s
,
pkt
);
mp3_xing_add_frame
(
s
,
pkt
);
return
ff_raw_write_packet
(
s
,
pkt
);
return
ff_raw_write_packet
(
s
,
pkt
);
...
@@ -435,7 +435,7 @@ static int mp3_write_trailer(AVFormatContext *s)
...
@@ -435,7 +435,7 @@ static int mp3_write_trailer(AVFormatContext *s)
if
(
ret
<
0
)
if
(
ret
<
0
)
return
ret
;
return
ret
;
if
(
0
<
mp3
->
offset
)
if
(
0
<
mp3
->
frames_
offset
)
mp3_fix_xing
(
s
);
mp3_fix_xing
(
s
);
return
0
;
return
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