aboutsummaryrefslogtreecommitdiff
path: root/libswresample
diff options
context:
space:
mode:
authorClément Bœsch2011-11-16 19:50:33 +0100
committerClément Bœsch2011-11-17 10:16:07 +0100
commita768b9d825b40aea831dbc79264dd396d63b74e2 (patch)
treecbf8e84e9ac7e68f27a1f9c13193a53ccf59ddc0 /libswresample
parent645c61fb2b9e434768a59f3c52f093d726061d95 (diff)
swr: make swr_* functions match the prototypes.
Diffstat (limited to 'libswresample')
-rw-r--r--libswresample/swresample.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libswresample/swresample.c b/libswresample/swresample.c
index 88dacd6910..2e8020dfff 100644
--- a/libswresample/swresample.c
+++ b/libswresample/swresample.c
@@ -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;