aboutsummaryrefslogtreecommitdiff
path: root/examples/file_writer_test.cc
diff options
context:
space:
mode:
authorSebastian Ramacher <sramacher@debian.org>2024-12-29 12:50:37 +0000
committerSebastian Ramacher <sramacher@debian.org>2024-12-29 12:50:37 +0000
commit873c687c09e0a1a78a8f3601d31330ad1897e484 (patch)
treeff2fa2e2d27b55c002a6d46d50aab2c66e0bf21a /examples/file_writer_test.cc
parent395b1f6877fbc2666383f3428f17400c35aa52a4 (diff)
parentb9ae809f200982119d16ec9613f3db95eca923b9 (diff)
downloadlibgav1-873c687c09e0a1a78a8f3601d31330ad1897e484.tar.gz
libgav1-873c687c09e0a1a78a8f3601d31330ad1897e484.tar.bz2
libgav1-873c687c09e0a1a78a8f3601d31330ad1897e484.zip
Merge branch 'master' into 'scrub-obsolete'
# Conflicts: # debian/changelog
Diffstat (limited to 'examples/file_writer_test.cc')
-rw-r--r--examples/file_writer_test.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/file_writer_test.cc b/examples/file_writer_test.cc
index 481808c..df5be17 100644
--- a/examples/file_writer_test.cc
+++ b/examples/file_writer_test.cc
@@ -18,6 +18,7 @@
#include <cstdint>
#include <cstring>
#include <memory>
+#include <new>
#include <ostream>
#include <string>
#include <utility>
@@ -64,7 +65,7 @@ const char* const
// TODO(tomfinegan): Add a bitdepth arg, and test writing 10 bit frame buffers.
std::unique_ptr<DecoderBuffer> GetFakeDecoderBuffer(ImageFormat image_format) {
- auto buffer = absl::make_unique<DecoderBuffer>();
+ auto buffer = absl::WrapUnique(new (std::nothrow) DecoderBuffer);
if (buffer == nullptr) return nullptr;
buffer->chroma_sample_position = kChromaSamplePositionUnknown;
buffer->image_format = image_format;