Commit Graph

6 Commits

Author SHA1 Message Date
NTD 0f1ad67464 Issue #546 - Update Tycho to libvpx 1.4 - Part 2: Update the build system files 2018-07-25 01:07:00 +08:00
NTD 90bf8e82b0 Issue #546 - Update Tycho to libvpx 1.4 - Part 1: Update the lib 2018-07-25 01:06:58 +08:00
wolfbeast 5d9dfcf535 Ensure that frames passed to the VP8 encoder have the correct resolution. 2018-07-24 23:17:16 +08:00
trav90 9a03f54dd0 Suppress many GCC/Clang build warnings in third-party code. 2018-07-24 23:12:09 +08:00
Gerald Squelart c91be13569 Clamp seg_lvl and QIndex also in abs-value mode
seg_lvl rationale:
Even when the segment feature data is in absolute mode, it is still read as a
6-bit value with an added sign, so it could have values between -63 and +63.
Later, this signed value is used without checks as a filter level, which is
used to access an entry in an array of size MAX_LOOP_FILTER+1=64.

This patch just extends the existing clamping (that was done only to relative-
mode data) to absolute mode data, before it is blindly 'memset' in
lfi->lvl[seg][0], which was where the out-of-bound filter_value was read in
subsequent vp8_loop_filter_row_simple.

A similar fix is applied for QIndex.
2018-07-24 23:11:14 +08:00
Moonchild baf46a6bf1 Merge pull request #1 from mozilla/esr38: Esr38 upstream pull 2018-07-24 23:04:07 +08:00