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
a38eadf7
Commit
a38eadf7
authored
Oct 17, 2012
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
atrac1: do not keep a copy of channel count in the private context
parent
4f56f9c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
atrac1.c
libavcodec/atrac1.c
+2
-4
No files found.
libavcodec/atrac1.c
View file @
a38eadf7
...
...
@@ -80,7 +80,6 @@ typedef struct {
DECLARE_ALIGNED
(
32
,
float
,
high
)[
512
];
float
*
bands
[
3
];
FFTContext
mdct_ctx
[
3
];
int
channels
;
DSPContext
dsp
;
}
AT1Ctx
;
...
...
@@ -280,7 +279,7 @@ static int atrac1_decode_frame(AVCodecContext *avctx, void *data,
GetBitContext
gb
;
if
(
buf_size
<
212
*
q
->
channels
)
{
if
(
buf_size
<
212
*
avctx
->
channels
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Not enough data to decode!
\n
"
);
return
AVERROR_INVALIDDATA
;
}
...
...
@@ -292,7 +291,7 @@ static int atrac1_decode_frame(AVCodecContext *avctx, void *data,
return
ret
;
}
for
(
ch
=
0
;
ch
<
q
->
channels
;
ch
++
)
{
for
(
ch
=
0
;
ch
<
avctx
->
channels
;
ch
++
)
{
AT1SUCtx
*
su
=
&
q
->
SUs
[
ch
];
init_get_bits
(
&
gb
,
&
buf
[
212
*
ch
],
212
*
8
);
...
...
@@ -343,7 +342,6 @@ static av_cold int atrac1_decode_init(AVCodecContext *avctx)
avctx
->
channels
);
return
AVERROR
(
EINVAL
);
}
q
->
channels
=
avctx
->
channels
;
/* Init the mdct transforms */
if
((
ret
=
ff_mdct_init
(
&
q
->
mdct_ctx
[
0
],
6
,
1
,
-
1
.
0
/
(
1
<<
15
)))
||
...
...
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