Commit 23417478 authored by Yaowu Xu's avatar Yaowu Xu Committed by Gerrit Code Review

Disable warning for intentional lossless coding

For VP9, lossless coding is enabled by passing 0 for both min_q and
max_q. This is a valid configuration, and should not be warned.

Change-Id: Idd117579cd89cd14c0723b1d7e482067ac12b401
parent dcb17eae
......@@ -81,7 +81,8 @@ static void check_lag_in_frames_realtime_deadline(
static void check_quantizer(int min_q, int max_q,
struct WarningList *warning_list) {
if (min_q == max_q || abs(max_q - min_q) < 8)
const int lossless = min_q == 0 && max_q == 0;
if (!lossless && (min_q == max_q || abs(max_q - min_q) < 8))
add_warning(quantizer_warning_string, warning_list);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment