comparison resample.c @ 1598:932d306bf1dc libavcodec

av_log() patch by (Michel Bardiaux <mbardiaux at peaktime dot be>)
author michael
date Mon, 03 Nov 2003 13:26:22 +0000
parents daa70b33fc44
children 3dc9bbe1b152
comparison
equal deleted inserted replaced
1597:4c9165372ab3 1598:932d306bf1dc
241 ReSampleContext *s; 241 ReSampleContext *s;
242 int i; 242 int i;
243 243
244 if ( input_channels > 2) 244 if ( input_channels > 2)
245 { 245 {
246 printf("Resampling with input channels greater than 2 unsupported."); 246 av_log(NULL, AV_LOG_ERROR, "Resampling with input channels greater than 2 unsupported.");
247 return NULL; 247 return NULL;
248 } 248 }
249 249
250 s = av_mallocz(sizeof(ReSampleContext)); 250 s = av_mallocz(sizeof(ReSampleContext));
251 if (!s) 251 if (!s)
252 { 252 {
253 printf("Can't allocate memory for resample context."); 253 av_log(NULL, AV_LOG_ERROR, "Can't allocate memory for resample context.");
254 return NULL; 254 return NULL;
255 } 255 }
256 256
257 s->ratio = (float)output_rate / (float)input_rate; 257 s->ratio = (float)output_rate / (float)input_rate;
258 258