ref: 80ea6d589cb94b4259f441a6e8733c3918f13c73
parent: 967204e8e367b6cf9dbb41513e57162703ea4aee
author: Sigrid Haflínudóttir <[email protected]>
date: Sun Sep 13 12:54:44 EDT 2020
damn kencc...
--- a/libfaad/specrec.c
+++ b/libfaad/specrec.c
@@ -1056,9 +1056,9 @@
}
if (sce->ics1.window_sequence == EIGHT_SHORT_SEQUENCE)
- hDecoder->sbr[ele]->maxAACLine = 8*min(sce->ics1.swb_offset[max(sce->ics1.max_sfb-1, 0)], sce->ics1.swb_offset_max);
+ hDecoder->sbr[ele]->maxAACLine = 8*min(sce->ics1.swb_offset[max((int)sce->ics1.max_sfb-1, 0)], sce->ics1.swb_offset_max);
else
- hDecoder->sbr[ele]->maxAACLine = min(sce->ics1.swb_offset[max(sce->ics1.max_sfb-1, 0)], sce->ics1.swb_offset_max);
+ hDecoder->sbr[ele]->maxAACLine = min(sce->ics1.swb_offset[max((int)sce->ics1.max_sfb-1, 0)], sce->ics1.swb_offset_max);
/* check if any of the PS tools is used */
#if (defined(PS_DEC) || defined(DRM_PS))
@@ -1312,9 +1312,9 @@
}
if (cpe->ics1.window_sequence == EIGHT_SHORT_SEQUENCE)
- hDecoder->sbr[ele]->maxAACLine = 8*min(cpe->ics1.swb_offset[max(cpe->ics1.max_sfb-1, 0)], cpe->ics1.swb_offset_max);
+ hDecoder->sbr[ele]->maxAACLine = 8*min(cpe->ics1.swb_offset[max((int)cpe->ics1.max_sfb-1, 0)], cpe->ics1.swb_offset_max);
else
- hDecoder->sbr[ele]->maxAACLine = min(cpe->ics1.swb_offset[max(cpe->ics1.max_sfb-1, 0)], cpe->ics1.swb_offset_max);
+ hDecoder->sbr[ele]->maxAACLine = min(cpe->ics1.swb_offset[max((int)cpe->ics1.max_sfb-1, 0)], cpe->ics1.swb_offset_max);
retval = sbrDecodeCoupleFrame(hDecoder->sbr[ele],
hDecoder->time_out[ch0], hDecoder->time_out[ch1],