Skip to content

Commit

Permalink
Merge pull request #79 from ittiam-systems/78-off-by-one-in-max-desc-…
Browse files Browse the repository at this point in the history
…lang-check

Fix for the issue reported in #78
  • Loading branch information
Vamsi100858 authored May 8, 2024
2 parents 2a435b5 + df6a121 commit a52c416
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion decoder/impeghd_mhas_parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ static IA_ERRORCODE impeghd_mae_parse_description_data(ia_description_data *pstr
pstr_description_data->num_descr_languages[blk] =
(WORD8)ia_core_coder_read_bits_buf(pstr_bit_buf, 4) + 1;

if (pstr_description_data->num_descr_languages[blk] >= MAX_NUM_DESCR_LANGUAGES)
if (pstr_description_data->num_descr_languages[blk] > MAX_NUM_DESCR_LANGUAGES)
{
pstr_description_data->num_descr_languages[blk] = 0;
return IA_MPEGH_DEC_INIT_FATAL_UNSUPPORTED_ASI_NUM_DESCRIPTION_LANGUAGES;
Expand Down
6 changes: 3 additions & 3 deletions decoder/impeghd_ver_number.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@
#define IMPEGHD_VER_NUMBER_H

#ifdef _ARM_
#define MPEG_H_3D_AUD_DEC_ITTIAM_VER "_ARM $Rev: 1.4 $"
#define MPEG_H_3D_AUD_DEC_ITTIAM_VER "_ARM $Rev: 1.5 $"
#elif _X86_
#define MPEG_H_3D_AUD_DEC_ITTIAM_VER "_X86 $Rev: 1.4 $"
#define MPEG_H_3D_AUD_DEC_ITTIAM_VER "_X86 $Rev: 1.5 $"
#else
#define MPEG_H_3D_AUD_DEC_ITTIAM_VER "_MSVC $Rev: 1.4 $"
#define MPEG_H_3D_AUD_DEC_ITTIAM_VER "_MSVC $Rev: 1.5 $"
#endif

#endif /* IMPEGHD_VER_NUMBER_H */

0 comments on commit a52c416

Please sign in to comment.