Commit ac6798db authored by Michael Niedermayer's avatar Michael Niedermayer

swr: fix compilation failure with old versions of gcc.

gcc 4.4 did not like the way i used typedefs

Idea-by: beastd
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent bcae7f43
...@@ -32,7 +32,7 @@ typedef struct AudioData{ ...@@ -32,7 +32,7 @@ typedef struct AudioData{
int planar; ///< 1 if planar audio, 0 otherwise int planar; ///< 1 if planar audio, 0 otherwise
} AudioData; } AudioData;
typedef struct SwrContext { struct SwrContext {
const AVClass *av_class; ///< AVClass used for AVOption and av_log() const AVClass *av_class; ///< AVClass used for AVOption and av_log()
int log_level_offset; ///< logging level offset int log_level_offset; ///< logging level offset
void *log_ctx; ///< parent logging context void *log_ctx; ///< parent logging context
...@@ -75,7 +75,7 @@ typedef struct SwrContext { ...@@ -75,7 +75,7 @@ typedef struct SwrContext {
uint8_t matrix_ch[SWR_CH_MAX][SWR_CH_MAX+1]; ///< Lists of input channels per output channel that have non zero rematrixing coefficients uint8_t matrix_ch[SWR_CH_MAX][SWR_CH_MAX+1]; ///< Lists of input channels per output channel that have non zero rematrixing coefficients
/* TODO: callbacks for ASM optimizations */ /* TODO: callbacks for ASM optimizations */
}SwrContext; };
struct ResampleContext *swri_resample_init(struct ResampleContext *, int out_rate, int in_rate, int filter_size, int phase_shift, int linear, double cutoff); struct ResampleContext *swri_resample_init(struct ResampleContext *, int out_rate, int in_rate, int filter_size, int phase_shift, int linear, double cutoff);
void swri_resample_free(struct ResampleContext **c); void swri_resample_free(struct ResampleContext **c);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment