mirror of
https://github.com/holub/mame
synced 2025-06-30 16:00:01 +03:00
amm, move the 0-size test (nw)
This commit is contained in:
parent
8c810f0ce3
commit
d3fe8d3b69
@ -99,6 +99,7 @@ bool mpeg_audio::decode_buffer(int &pos, int limit, short *output,
|
|||||||
if (!read_header_amm(variant == 2))
|
if (!read_header_amm(variant == 2))
|
||||||
return false;
|
return false;
|
||||||
read_data_mpeg2();
|
read_data_mpeg2();
|
||||||
|
if(last_frame_number)
|
||||||
decode_mpeg2(output, output_samples);
|
decode_mpeg2(output, output_samples);
|
||||||
} catch(limit_hit) {
|
} catch(limit_hit) {
|
||||||
return false;
|
return false;
|
||||||
@ -128,9 +129,6 @@ bool mpeg_audio::read_header_amm(bool layer25)
|
|||||||
param_index = gb(3);
|
param_index = gb(3);
|
||||||
gb(1); // must be zero
|
gb(1); // must be zero
|
||||||
|
|
||||||
if (last_frame_number == 0)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
channel_count = stereo_mode != 3 ? 2 : 1;
|
channel_count = stereo_mode != 3 ? 2 : 1;
|
||||||
|
|
||||||
total_bands = total_band_counts[param_index];
|
total_bands = total_band_counts[param_index];
|
||||||
|
Loading…
Reference in New Issue
Block a user