shithub: libvpx

Download patch

ref: ca393c97266a2938c407cc4e151409d77d663de4
parent: 5009302bce7655054882a1bb7d2e0ad3010e712e
parent: db8fa86a6c217002511d54f9af05824d486333db
author: Paul Wilkins <paulwilkins@google.com>
date: Tue Aug 15 10:57:56 EDT 2017

Merge "Patch relating to Issue 1456."

--- a/vp9/encoder/vp9_firstpass.c
+++ b/vp9/encoder/vp9_firstpass.c
@@ -2126,7 +2126,7 @@
   int allocation_chunks;
 
   // return 0 for invalid inputs (could arise e.g. through rounding errors)
-  if (!boost || (total_group_bits <= 0) || (frame_count <= 0)) return 0;
+  if (!boost || (total_group_bits <= 0) || (frame_count < 0)) return 0;
 
   allocation_chunks = (frame_count * 100) + boost;