summaryrefslogtreecommitdiffstats
path: root/libmpdemux/mp3_hdr.h
diff options
context:
space:
mode:
authornicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-04-17 09:42:51 +0000
committernicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-04-17 09:42:51 +0000
commitaa8b3279f9afd3f933ffc64bf8b9d67edf306b3e (patch)
tree712f62186dcf298614b21fc96f243c2fcdf06232 /libmpdemux/mp3_hdr.h
parent1e12bf4d7190c4b3b01f58b92826459fcef8e538 (diff)
downloadmpv-aa8b3279f9afd3f933ffc64bf8b9d67edf306b3e.tar.bz2
mpv-aa8b3279f9afd3f933ffc64bf8b9d67edf306b3e.tar.xz
assign correct tag, dwScale and dwBlockAlign to mpeg audio; optionally assign layer and samples_per_frame when parsing mpa header
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15200 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/mp3_hdr.h')
-rw-r--r--libmpdemux/mp3_hdr.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmpdemux/mp3_hdr.h b/libmpdemux/mp3_hdr.h
index 2dfa484e10..4181e2447a 100644
--- a/libmpdemux/mp3_hdr.h
+++ b/libmpdemux/mp3_hdr.h
@@ -1,7 +1,7 @@
-int mp_get_mp3_header(unsigned char* hbuf,int* chans, int* freq);
+int mp_get_mp3_header(unsigned char* hbuf,int* chans, int* freq, int* spf, int* mpa_layer);
-#define mp_decode_mp3_header(hbuf) mp_get_mp3_header(hbuf,NULL,NULL)
+#define mp_decode_mp3_header(hbuf) mp_get_mp3_header(hbuf,NULL,NULL,NULL,NULL)
static inline int mp_check_mp3_header(unsigned int head){
if( (head & 0x0000e0ff) != 0x0000e0ff ||