ref: 07e7d722bae56afeb9bd1e0f40c478e6fa556635
parent: 0fe043c023d41385888abafdce1000025992ffb8
author: Krzysztof Nikiel <knik@users.sourceforge.net>
date: Mon Nov 6 12:39:46 EST 2017
fixed DRM compilation
--- a/libfaac/bitstream.c
+++ b/libfaac/bitstream.c
@@ -1124,7 +1124,7 @@
for (i = 0; i < num_cw; i++) {
/* process only codewords that are due now */
if ((cw_info_preso[i].cb == nextCB) ||
- ((nextCB < ESC_HCB) && (cw_info_preso[i].cb == nextCB + 1)))
+ ((nextCB < HCB_ESC) && (cw_info_preso[i].cb == nextCB + 1)))
{
cw_info[cw_cnt++] = cw_info_preso[i];
}
--- a/libfaac/huff2.c
+++ b/libfaac/huff2.c
@@ -475,7 +475,7 @@
#ifdef DRM
/* sect_len is not transmitted in case the codebook for a */
/* section is 11 or in the range of 16 and 31 */
- if ((previous == 11) || ((previous >= 16) && (previous <= 32)))
+ if ((book == 11) || ((book >= 16) && (book <= 32)))
continue;
#endif