Mercurial > audlegacy-plugins
changeset 3052:95b34f46a231
Comment out MPEG2/MPEG4 determination using the variable id. It is not used anywhere. Code analysis run, unique ID 6nYoHM.
author | Tony Vroon <chainsaw@gentoo.org> |
---|---|
date | Sat, 18 Apr 2009 19:06:20 +0100 |
parents | 10764aa201f2 |
children | a3734dd60d7a |
files | src/aac/libmp4.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;