2023-03-08 11:15:18 +01:00
|
|
|
diff --git a/src/apps/cam/file_sink.cpp b/src/apps/cam/file_sink.cpp
|
2023-03-13 10:02:16 +01:00
|
|
|
index b32aad24..9a543dc1 100644
|
2023-03-08 11:15:18 +01:00
|
|
|
--- a/src/apps/cam/file_sink.cpp
|
|
|
|
+++ b/src/apps/cam/file_sink.cpp
|
2023-03-13 10:02:16 +01:00
|
|
|
@@ -114,7 +114,16 @@ void FileSink::writeBuffer(const Stream *stream, FrameBuffer *buffer,
|
2023-03-08 11:15:18 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
for (unsigned int i = 0; i < buffer->planes().size(); ++i) {
|
2023-03-13 10:02:16 +01:00
|
|
|
+
|
|
|
|
+#if __GNUC__ >= 13
|
2023-03-08 11:15:18 +01:00
|
|
|
+#pragma GCC diagnostic push
|
|
|
|
+#pragma GCC diagnostic ignored "-Wdangling-reference"
|
2023-03-13 10:02:16 +01:00
|
|
|
+#endif
|
|
|
|
+
|
2023-03-08 11:15:18 +01:00
|
|
|
const FrameMetadata::Plane &meta = buffer->metadata().planes()[i];
|
2023-03-13 10:02:16 +01:00
|
|
|
+#if __GNUC__ >= 13
|
2023-03-08 11:15:18 +01:00
|
|
|
+#pragma GCC diagnostic pop
|
2023-03-13 10:02:16 +01:00
|
|
|
+#endif
|
2023-03-08 11:15:18 +01:00
|
|
|
|
|
|
|
Span<uint8_t> data = image->data(i);
|
|
|
|
unsigned int length = std::min<unsigned int>(meta.bytesused, data.size());
|