Mercurial > libavcodec.hg
comparison resample.c @ 2979:bfabfdf9ce55 libavcodec
COSMETICS: tabs --> spaces, some prettyprinting
| author | diego |
|---|---|
| date | Thu, 22 Dec 2005 01:10:11 +0000 |
| parents | ef2149182f1c |
| children | 0b546eab515d |
comparison
equal
deleted
inserted
replaced
| 2978:403183bbb505 | 2979:bfabfdf9ce55 |
|---|---|
| 129 { | 129 { |
| 130 ReSampleContext *s; | 130 ReSampleContext *s; |
| 131 | 131 |
| 132 if ( input_channels > 2) | 132 if ( input_channels > 2) |
| 133 { | 133 { |
| 134 av_log(NULL, AV_LOG_ERROR, "Resampling with input channels greater than 2 unsupported."); | 134 av_log(NULL, AV_LOG_ERROR, "Resampling with input channels greater than 2 unsupported."); |
| 135 return NULL; | 135 return NULL; |
| 136 } | 136 } |
| 137 | 137 |
| 138 s = av_mallocz(sizeof(ReSampleContext)); | 138 s = av_mallocz(sizeof(ReSampleContext)); |
| 139 if (!s) | 139 if (!s) |
| 140 { | 140 { |
| 141 av_log(NULL, AV_LOG_ERROR, "Can't allocate memory for resample context."); | 141 av_log(NULL, AV_LOG_ERROR, "Can't allocate memory for resample context."); |
| 142 return NULL; | 142 return NULL; |
| 143 } | 143 } |
| 144 | 144 |
| 145 s->ratio = (float)output_rate / (float)input_rate; | 145 s->ratio = (float)output_rate / (float)input_rate; |
| 146 | 146 |
| 147 s->input_channels = input_channels; | 147 s->input_channels = input_channels; |
