From: Yaowu Xu Date: Thu, 5 Dec 2013 21:52:47 +0000 (-0800) Subject: Disable warning for intentional lossless coding X-Git-Tag: v1.4.0~2880 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2341747805d1a829cb9140a4f391bdf2534cdf70;p=libvpx 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 --- diff --git a/warnings.c b/warnings.c index 96400db2d..f76d706e0 100644 --- a/warnings.c +++ b/warnings.c @@ -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); }