diff options
author | Benoit Fouet <benoit.fouet@free.fr> | 2009-03-23 10:58:05 +0000 |
---|---|---|
committer | Benoit Fouet <benoit.fouet@free.fr> | 2009-03-23 10:58:05 +0000 |
commit | 6d69a653d8c60c05a2afc540237660fa8db90e71 (patch) | |
tree | a1c82b4196690f1294eb4bee261452bc3e6cd100 /libavcodec/resample.c | |
parent | 04964ee8bbdc3188fd6a0b610aed000ff2becca4 (diff) | |
download | ffmpeg-6d69a653d8c60c05a2afc540237660fa8db90e71.tar.gz |
Move av_class to AVResampleContext instead of ReSampleContext.
Fixes issue 852.
Originally committed as revision 18170 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/resample.c')
-rw-r--r-- | libavcodec/resample.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/resample.c b/libavcodec/resample.c index 829db76570..122b725d39 100644 --- a/libavcodec/resample.c +++ b/libavcodec/resample.c @@ -39,7 +39,6 @@ static const AVOption options[] = {{NULL}}; static const AVClass audioresample_context_class = { "ReSampleContext", context_to_name, options }; struct ReSampleContext { - const AVClass *av_class; struct AVResampleContext *resample_context; short *temp[2]; int temp_len; @@ -213,7 +212,7 @@ ReSampleContext *av_audio_resample_init(int output_channels, int input_channels, s->resample_context= av_resample_init(output_rate, input_rate, filter_length, log2_phase_count, linear, cutoff); - s->av_class= &audioresample_context_class; + *(AVClass**)s->resample_context = &audioresample_context_class; return s; } |