shithub: libvpx

Download patch

ref: d91af5f905bb282d65f82030fa5a967eaea3e756
parent: 35f8515c3fb76a5264747ed4aa8487476d83e0b1
parent: e0330c48100c721cd87c07ec9397b2ff2eda76ae
author: Johann Koenig <johannkoenig@google.com>
date: Wed Jun 28 18:36:05 EDT 2017

Merge "buffer.h: Only allow Init() to be called once."

--- a/test/buffer.h
+++ b/test/buffer.h
@@ -95,6 +95,7 @@
   bool CheckValues(const Buffer<T> &a) const;
 
   bool Init() {
+    if (raw_buffer_ != NULL) return false;
     EXPECT_GT(width_, 0);
     EXPECT_GT(height_, 0);
     EXPECT_GE(top_padding_, 0);