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
926e9d28
Commit
926e9d28
authored
Oct 21, 2012
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cook: remove unneeded COOKContext variable, sample_rate
parent
8aa5b8c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
cook.c
libavcodec/cook.c
+1
-3
No files found.
libavcodec/cook.c
View file @
926e9d28
...
...
@@ -126,7 +126,6 @@ typedef struct cook {
AVFrame
frame
;
GetBitContext
gb
;
/* stream data */
int
sample_rate
;
int
num_vectors
;
int
samples_per_channel
;
/* states */
...
...
@@ -1024,7 +1023,7 @@ static void dump_cook_context(COOKContext *q)
av_log
(
q
->
avctx
,
AV_LOG_ERROR
,
"COOKContext
\n
"
);
PRINT
(
"nb_channels"
,
q
->
avctx
->
channels
);
PRINT
(
"bit_rate"
,
q
->
avctx
->
bit_rate
);
PRINT
(
"sample_rate"
,
q
->
sample_rate
);
PRINT
(
"sample_rate"
,
q
->
avctx
->
sample_rate
);
PRINT
(
"samples_per_channel"
,
q
->
subpacket
[
0
].
samples_per_channel
);
PRINT
(
"samples_per_frame"
,
q
->
subpacket
[
0
].
samples_per_frame
);
PRINT
(
"subbands"
,
q
->
subpacket
[
0
].
subbands
);
...
...
@@ -1069,7 +1068,6 @@ static av_cold int cook_decode_init(AVCodecContext *avctx)
av_log
(
avctx
,
AV_LOG_DEBUG
,
"codecdata_length=%d
\n
"
,
avctx
->
extradata_size
);
/* Take data from the AVCodecContext (RM container). */
q
->
sample_rate
=
avctx
->
sample_rate
;
if
(
!
avctx
->
channels
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Invalid number of channels
\n
"
);
return
AVERROR_INVALIDDATA
;
...
...
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