comparison libmpdemux/mp3_hdr.h @ 29263:0f1b5b68af32

whitespace cosmetics: Remove all trailing whitespace.
author diego
date Wed, 13 May 2009 02:58:57 +0000
parents d643e4643313
children 7b4f8ecdc33b
comparison
equal deleted inserted replaced
29262:7d545a6b8aff 29263:0f1b5b68af32
24 int mp_get_mp3_header(unsigned char* hbuf,int* chans, int* freq, int* spf, int* mpa_layer, int* br); 24 int mp_get_mp3_header(unsigned char* hbuf,int* chans, int* freq, int* spf, int* mpa_layer, int* br);
25 25
26 #define mp_decode_mp3_header(hbuf) mp_get_mp3_header(hbuf,NULL,NULL,NULL,NULL,NULL) 26 #define mp_decode_mp3_header(hbuf) mp_get_mp3_header(hbuf,NULL,NULL,NULL,NULL,NULL)
27 27
28 static inline int mp_check_mp3_header(unsigned int head){ 28 static inline int mp_check_mp3_header(unsigned int head){
29 if( (head & 0x0000e0ff) != 0x0000e0ff || 29 if( (head & 0x0000e0ff) != 0x0000e0ff ||
30 (head & 0x00fc0000) == 0x00fc0000) return 0; 30 (head & 0x00fc0000) == 0x00fc0000) return 0;
31 if(mp_decode_mp3_header((unsigned char*)(&head))<=0) return 0; 31 if(mp_decode_mp3_header((unsigned char*)(&head))<=0) return 0;
32 return 1; 32 return 1;
33 } 33 }
34 34