ref: e19a5e491354e0e4664d02b796dacee28fb2521e
parent: f71b5e81f563d94fa284977a326520d269d8353e
author: Andrew Wesie <awesie@gmail.com>
date: Sun Oct 4 20:33:44 EDT 2020
Check return value of ltp_data. Fixes #62.
--- a/libfaad/syntax.c
+++ b/libfaad/syntax.c
@@ -884,7 +884,10 @@
if ((ics->ltp.data_present = faad_get1bit(ld
DEBUGVAR(1,50,"ics_info(): ltp.data_present"))) & 1)
{
- ltp_data(hDecoder, ics, &(ics->ltp), ld);
+ if ((retval = ltp_data(hDecoder, ics, &(ics->ltp), ld)) > 0)
+ {
+ return retval;
+ }
}
}
#endif