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
a768b9d8
Commit
a768b9d8
authored
Nov 16, 2011
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swr: make swr_* functions match the prototypes.
parent
645c61fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
swresample.c
libswresample/swresample.c
+6
-6
No files found.
libswresample/swresample.c
View file @
a768b9d8
...
...
@@ -73,7 +73,7 @@ static const AVClass av_class = {
static
int
resample
(
SwrContext
*
s
,
AudioData
*
out_param
,
int
out_count
,
const
AudioData
*
in_param
,
int
in_count
);
SwrContext
*
swr_alloc
(
void
){
struct
SwrContext
*
swr_alloc
(
void
){
SwrContext
*
s
=
av_mallocz
(
sizeof
(
SwrContext
));
if
(
s
){
s
->
av_class
=
&
av_class
;
...
...
@@ -82,10 +82,10 @@ SwrContext *swr_alloc(void){
return
s
;
}
SwrContext
*
swr_alloc_set_opts
(
struct
SwrContext
*
s
,
int64_t
out_ch_layout
,
enum
AVSampleFormat
out_sample_fmt
,
int
out_sample_rate
,
int64_t
in_ch_layout
,
enum
AVSampleFormat
in_sample_fmt
,
int
in_sample_rate
,
const
int
*
channel_map
,
int
log_offset
,
void
*
log_ctx
){
struct
SwrContext
*
swr_alloc_set_opts
(
struct
SwrContext
*
s
,
int64_t
out_ch_layout
,
enum
AVSampleFormat
out_sample_fmt
,
int
out_sample_rate
,
int64_t
in_ch_layout
,
enum
AVSampleFormat
in_sample_fmt
,
int
in_sample_rate
,
const
int
*
channel_map
,
int
log_offset
,
void
*
log_ctx
){
if
(
!
s
)
s
=
swr_alloc
();
if
(
!
s
)
return
NULL
;
...
...
@@ -129,7 +129,7 @@ void swr_free(SwrContext **ss){
av_freep
(
ss
);
}
int
swr_init
(
SwrContext
*
s
){
int
swr_init
(
struct
SwrContext
*
s
){
s
->
in_buffer_index
=
0
;
s
->
in_buffer_count
=
0
;
s
->
resample_in_constraint
=
0
;
...
...
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