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
7c1f93af
Commit
7c1f93af
authored
Oct 19, 2012
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
atrac3: remove unused ATRAC3Context field, samples_per_channel
parent
cdd0e0de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
atrac3.c
libavcodec/atrac3.c
+1
-3
No files found.
libavcodec/atrac3.c
View file @
7c1f93af
...
...
@@ -92,7 +92,6 @@ typedef struct ATRAC3Context {
int
coding_mode
;
int
bit_rate
;
int
sample_rate
;
int
samples_per_channel
;
int
samples_per_frame
;
ChannelUnit
*
units
;
...
...
@@ -870,7 +869,7 @@ static av_cold int atrac3_decode_init(AVCodecContext *avctx)
/* Parse the extradata, WAV format */
av_log
(
avctx
,
AV_LOG_DEBUG
,
"[0-1] %d
\n
"
,
bytestream_get_le16
(
&
edata_ptr
));
// Unknown value always 1
q
->
samples_per_channel
=
bytestream_get_le32
(
&
edata_ptr
);
edata_ptr
+=
4
;
// samples per channel
q
->
coding_mode
=
bytestream_get_le16
(
&
edata_ptr
);
av_log
(
avctx
,
AV_LOG_DEBUG
,
"[8-9] %d
\n
"
,
bytestream_get_le16
(
&
edata_ptr
));
//Dupe of coding mode
...
...
@@ -899,7 +898,6 @@ static av_cold int atrac3_decode_init(AVCodecContext *avctx)
q
->
samples_per_frame
=
bytestream_get_be16
(
&
edata_ptr
);
delay
=
bytestream_get_be16
(
&
edata_ptr
);
q
->
coding_mode
=
bytestream_get_be16
(
&
edata_ptr
);
q
->
samples_per_channel
=
q
->
samples_per_frame
/
avctx
->
channels
;
q
->
scrambled_stream
=
1
;
}
else
{
...
...
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