comparison libmpdemux/mp3_hdr.h @ 26029:4129c8cfa742

Add MPLAYER_ prefix to multiple inclusion guards.
author diego
date Fri, 22 Feb 2008 09:09:46 +0000
parents 6ac1ece1f9fe
children 268ecf0e1ba4
comparison
equal deleted inserted replaced
26028:afd429e00184 26029:4129c8cfa742
1 #ifndef MP3_HDR_H 1 #ifndef MPLAYER_MP3_HDR_H
2 #define MP3_HDR_H 2 #define MPLAYER_MP3_HDR_H
3 3
4 int mp_get_mp3_header(unsigned char* hbuf,int* chans, int* freq, int* spf, int* mpa_layer, int* br); 4 int mp_get_mp3_header(unsigned char* hbuf,int* chans, int* freq, int* spf, int* mpa_layer, int* br);
5 5
6 #define mp_decode_mp3_header(hbuf) mp_get_mp3_header(hbuf,NULL,NULL,NULL,NULL,NULL) 6 #define mp_decode_mp3_header(hbuf) mp_get_mp3_header(hbuf,NULL,NULL,NULL,NULL,NULL)
7 7
10 (head & 0x00fc0000) == 0x00fc0000) return 0; 10 (head & 0x00fc0000) == 0x00fc0000) return 0;
11 if(mp_decode_mp3_header((unsigned char*)(&head))<=0) return 0; 11 if(mp_decode_mp3_header((unsigned char*)(&head))<=0) return 0;
12 return 1; 12 return 1;
13 } 13 }
14 14
15 #endif /* MP3_HDR_H */ 15 #endif /* MPLAYER_MP3_HDR_H */