Mercurial > libavcodec.hg
comparison liba52/resample.c @ 1602:fdb8244da1e5 libavcodec
av_log patch(2 of ?) by (Michel Bardiaux <mbardiaux at peaktime dot be>)
author | michael |
---|---|
date | Mon, 03 Nov 2003 18:06:54 +0000 |
parents | e101d1cffec6 |
children | ef2149182f1c |
comparison
equal
deleted
inserted
replaced
1601:a70c07e13e8e | 1602:fdb8244da1e5 |
---|---|
22 | 22 |
23 #ifdef ARCH_X86 | 23 #ifdef ARCH_X86 |
24 if(mm_accel&MM_ACCEL_X86_MMX){ | 24 if(mm_accel&MM_ACCEL_X86_MMX){ |
25 tmp=a52_resample_MMX(flags,chans); | 25 tmp=a52_resample_MMX(flags,chans); |
26 if(tmp){ | 26 if(tmp){ |
27 if(a52_resample==NULL) fprintf(stderr, "Using MMX optimized resampler\n"); | 27 if(a52_resample==NULL) av_log(NULL, AV_LOG_INFO, "Using MMX optimized resampler\n"); |
28 a52_resample=tmp; | 28 a52_resample=tmp; |
29 return tmp; | 29 return tmp; |
30 } | 30 } |
31 } | 31 } |
32 #endif | 32 #endif |
33 | 33 |
34 tmp=a52_resample_C(flags,chans); | 34 tmp=a52_resample_C(flags,chans); |
35 if(tmp){ | 35 if(tmp){ |
36 if(a52_resample==NULL) fprintf(stderr, "No accelerated resampler found\n"); | 36 if(a52_resample==NULL) av_log(NULL, AV_LOG_INFO, "No accelerated resampler found\n"); |
37 a52_resample=tmp; | 37 a52_resample=tmp; |
38 return tmp; | 38 return tmp; |
39 } | 39 } |
40 | 40 |
41 fprintf(stderr, "Unimplemented resampler for mode 0x%X -> %d channels conversion - Contact MPlayer developers!\n", flags, chans); | 41 av_log(NULL, AV_LOG_ERROR, "Unimplemented resampler for mode 0x%X -> %d channels conversion - Contact MPlayer developers!\n", flags, chans); |
42 return NULL; | 42 return NULL; |
43 } | 43 } |