shithub: libvpx

Download patch

ref: 2341747805d1a829cb9140a4f391bdf2534cdf70
parent: dcb17eaefca3650f3ed5e2ef4e6d564d646ec519
author: Yaowu Xu <yaowu@google.com>
date: Thu Dec 5 08:52:47 EST 2013

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

--- a/warnings.c
+++ b/warnings.c
@@ -81,7 +81,8 @@
 
 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);
 }