From aa8b3279f9afd3f933ffc64bf8b9d67edf306b3e Mon Sep 17 00:00:00 2001 From: nicodvb Date: Sun, 17 Apr 2005 09:42:51 +0000 Subject: 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 --- libmpdemux/mp3_hdr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libmpdemux/mp3_hdr.h') 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 || -- cgit v1.2.3