Skip to content

Commit

Permalink
Fix for issues #34 and #36 (#41)
Browse files Browse the repository at this point in the history
* Fix for issues #34 and #36

[x] Includes a warning fix seen on MSVS build
[x] Tested for conformance.

---------

Co-authored-by: Saketh Sathuvalli <100603@ittiam.com>
  • Loading branch information
SakethSathuvalli and Saketh Sathuvalli committed Feb 1, 2023
1 parent 8a198b9 commit 0b8499a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions decoder/ia_core_coder_decode_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1870,8 +1870,8 @@ IA_ERRORCODE ia_core_coder_dec_process_frame_zero(VOID *temp_handle, WORD32 *num
}
}
pstr_dec_data->dec_bit_buf.max_size = handle->p_mem_info_mpeghd[IA_MEMTYPE_INPUT].ui_size << 3;
if (pstr_asc->str_usac_config.signals_3d.format_converter_enable == 0 && hoa_present == 0 &&
oam_present == 0)
if ((hoa_present == 0 && oam_present == 0) ||
(pstr_asc->str_usac_config.signals_3d.format_converter_enable == 1))
*num_channel_out = pstr_dec_data->str_frame_data.scal_out_num_channels; // check
else if (pstr_asc->str_usac_config.signals_3d.format_converter_enable == 1)
*num_channel_out = pstr_dec_data->str_frame_data.scal_out_num_channels;
Expand Down

0 comments on commit 0b8499a

Please sign in to comment.