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
ec39f7d8
Commit
ec39f7d8
authored
Apr 26, 2008
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify
Originally committed as revision 12986 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
9708d52e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
mpegaudiodec.c
libavcodec/mpegaudiodec.c
+5
-7
No files found.
libavcodec/mpegaudiodec.c
View file @
ec39f7d8
...
...
@@ -2563,7 +2563,6 @@ static int decode_frame_mp3on4(AVCodecContext * avctx,
OUT_INT
decoded_buf
[
MPA_FRAME_SIZE
*
MPA_MAX_CHANNELS
];
OUT_INT
*
outptr
,
*
bp
;
int
fsize
;
const
unsigned
char
*
start2
=
buf
,
*
start
;
int
fr
,
i
,
j
,
n
;
int
off
=
avctx
->
channels
;
const
uint8_t
*
coff
=
chan_offset
[
s
->
chan_cfg
];
...
...
@@ -2579,16 +2578,13 @@ static int decode_frame_mp3on4(AVCodecContext * avctx,
outptr
=
s
->
frames
==
1
?
out_samples
:
decoded_buf
;
for
(
fr
=
0
;
fr
<
s
->
frames
;
fr
++
)
{
start
=
start2
;
fsize
=
AV_RB16
(
start
)
>>
4
;
fsize
=
AV_RB16
(
buf
)
>>
4
;
fsize
=
FFMIN3
(
fsize
,
len
,
MPA_MAX_CODED_FRAME_SIZE
);
start2
+=
fsize
;
len
-=
fsize
;
m
=
s
->
mp3decctx
[
fr
];
assert
(
m
!=
NULL
);
// Get header
header
=
AV_RB32
(
start
)
|
0xfff00000
;
header
=
AV_RB32
(
buf
)
|
0xfff00000
;
if
(
ff_mpa_check_header
(
header
)
<
0
)
{
// Bad header, discard block
*
data_size
=
0
;
...
...
@@ -2596,7 +2592,9 @@ static int decode_frame_mp3on4(AVCodecContext * avctx,
}
ff_mpegaudio_decode_header
(
m
,
header
);
out_size
+=
mp_decode_frame
(
m
,
decoded_buf
,
start
,
fsize
);
out_size
+=
mp_decode_frame
(
m
,
decoded_buf
,
buf
,
fsize
);
buf
+=
fsize
;
len
-=
fsize
;
if
(
s
->
frames
>
1
)
{
n
=
m
->
avctx
->
frame_size
*
m
->
nb_channels
;
...
...
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