1. portalfire
  2. pyMP3
Issue #1 new

index out of bounds error when decoding

pwoolf
created an issue

First off, thanks for making this code! It is a wonderful thing! However, when running it I get an error:

pyMP3 v.01

============

Input filename[test.mp3]:

Output filename[test.wav]:

Limit number of frames decoded(0=no_limit)[100]:0

Loading MP3 into memory

Starting Decode

bitrate(kps): 56

sample rate: 48000

channel mode: mono

Traceback (most recent call last):

File "pyMP3.py", line 993, in <module> p.decode(dst_filename)

File "pyMP3.py", line 173, in decode self.decode_main_info()

File "pyMP3.py", line 724, in decode_main_info self.decode_main_data_huffman(ch, gr, part2_start)

File "pyMP3.py", line 749, in decode_main_data_huffman self.cur_frame.main_data.q_vals[gr][ch][i/SSLIMIT][i%SSLIMIT] = x

IndexError: index out of bounds

Any thoughts? Thanks!

Comments (4)

  1. Anonymous

    I've got an appointment today, but after that, i'll give it a look. is it possible for me to get a copy of the mp3?

  2. Mai Đào

    error

    Traceback (most recent call last): File "D:\PROJECT\mp3\python_27\pyMP3.py", line 993, in <module> p.decode(dst_filename) File "D:\PROJECT\mp3\python_27\pyMP3.py", line 173, in decode self.decode_main_info() File "D:\PROJECT\mp3\python_27\pyMP3.py", line 724, in decode_main_info self.decode_main_data_huffman(ch, gr, part2_start) File "D:\PROJECT\mp3\python_27\pyMP3.py", line 736, in decode_main_data_huffman region1Start = sfBandIndex_l[self.cur_frame.hdr.smpl_rate][self.cur_frame.side_info.region0_count[ch][gr] + 1] KeyError: 0

  3. Mai Đào

    now, this error

    Traceback (most recent call last):

    File "D:\PROJECT\mp3\python_27\pyMP3.py", line 993, in <module> p.decode(dst_filename) File "D:\PROJECT\mp3\python_27\pyMP3.py", line 177, in decode self.process_stereo() File "D:\PROJECT\mp3\python_27\pyMP3.py", line 319, in process_stereo is_ratio = process_intensity_stereo(self, gr, is_pos) NameError: global name 'process_intensity_stereo' is not defined

    ##

  4. Log in to comment