# HG changeset patch # User Tony Vroon # Date 1240077980 -3600 # Node ID 95b34f46a231cea98decbd2a677d1f4390020ff2 # Parent 10764aa201f2dd894c7036fceef945c171bbb60e Comment out MPEG2/MPEG4 determination using the variable id. It is not used anywhere. Code analysis run, unique ID 6nYoHM. diff -r 10764aa201f2 -r 95b34f46a231 src/aac/libmp4.c --- a/src/aac/libmp4.c Sat Apr 18 19:04:18 2009 +0100 +++ b/src/aac/libmp4.c Sat Apr 18 19:06:20 2009 +0100 @@ -139,13 +139,15 @@ /// aac_parse_frames needs a buffer at least 8 bytes long int aac_parse_frame(guchar *buf, int *srate, int *num) { - int i = 0, sr, fl = 0, id; + int i = 0, sr, fl = 0; static int srates[] = {96000, 88200, 64000, 48000, 44100, 32000, 24000, 22050, 16000, 12000, 11025, 8000, 0, 0, 0}; if((buf[i] != 0xFF) || ((buf[i+1] & 0xF6) != 0xF0)) return 0; +/* We currently have no use for the id below. id = (buf[i+1] >> 3) & 0x01; //id=1 mpeg2, 0: mpeg4 +*/ sr = (buf[i+2] >> 2) & 0x0F; if(sr > 11) return 0;