Skip to content

Commit

Permalink
Fix termMELandVLCPackers.m
Browse files Browse the repository at this point in the history
  • Loading branch information
osamu620 committed May 25, 2021
1 parent 90d44e1 commit aba947f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/HTcodec/encoder/termMELandVLCPackers.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
state_MELPacker.MEL_tmp = bitshift(state_MELPacker.MEL_tmp, state_MELPacker.MEL_rem);

MEL_mask = bitand(bitshift(x_FF, state_MELPacker.MEL_rem), x_FF); % if MEL_rem is 8, MEL_mask = 0
VLC_mask = bitshift(x_FF, -(8 - state_VLC.VLC_bits)); % if VLC_bits is 0, VLC_mask = 0
VLC_mask = bitshift(x_FF, -(8 - int8(state_VLC.VLC_bits))); % if VLC_bits is 0, VLC_mask = 0

if bitor(MEL_mask, VLC_mask) == 0
return; % last MEL byte cannot be FF, since then MEL rem would be < 8
Expand Down

1 comment on commit aba947f

@osamu620
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes #5

Please sign in to comment.