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
5fd7a9fc
Commit
5fd7a9fc
authored
Apr 26, 2008
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify: merge loops
Originally committed as revision 12996 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
8da8970d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
mpegaudiodec.c
libavcodec/mpegaudiodec.c
+4
-4
No files found.
libavcodec/mpegaudiodec.c
View file @
5fd7a9fc
...
...
@@ -2572,7 +2572,7 @@ static int decode_frame_mp3on4(AVCodecContext * avctx,
OUT_INT
decoded_buf
[
MPA_FRAME_SIZE
*
MPA_MAX_CHANNELS
];
OUT_INT
*
outptr
,
*
bp
;
int
fsize
;
int
fr
,
i
,
j
,
n
;
int
fr
,
j
,
n
;
len
=
buf_size
;
...
...
@@ -2584,6 +2584,8 @@ static int decode_frame_mp3on4(AVCodecContext * avctx,
// If only one decoder interleave is not needed
outptr
=
s
->
frames
==
1
?
out_samples
:
decoded_buf
;
avctx
->
bit_rate
=
0
;
for
(
fr
=
0
;
fr
<
s
->
frames
;
fr
++
)
{
fsize
=
AV_RB16
(
buf
)
>>
4
;
fsize
=
FFMIN3
(
fsize
,
len
,
MPA_MAX_CODED_FRAME_SIZE
);
...
...
@@ -2619,13 +2621,11 @@ static int decode_frame_mp3on4(AVCodecContext * avctx,
}
}
}
avctx
->
bit_rate
+=
m
->
bit_rate
;
}
/* update codec info */
avctx
->
sample_rate
=
s
->
mp3decctx
[
0
]
->
sample_rate
;
avctx
->
bit_rate
=
0
;
for
(
i
=
0
;
i
<
s
->
frames
;
i
++
)
avctx
->
bit_rate
+=
s
->
mp3decctx
[
i
]
->
bit_rate
;
*
data_size
=
out_size
;
return
buf_size
;
...
...
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