style(macos): various code style fixes (#2086)

This commit is contained in:
ReenigneArcher
2024-02-04 18:37:44 -05:00
committed by GitHub
parent dea1155983
commit 76e160bb0a
11 changed files with 53 additions and 53 deletions

View File

@@ -11,7 +11,7 @@
namespace platf {
struct av_sample_buf_t {
av_sample_buf_t(CMSampleBufferRef buf):
explicit av_sample_buf_t(CMSampleBufferRef buf):
buf((CMSampleBufferRef) CFRetain(buf)) {}
~av_sample_buf_t() {
@@ -22,12 +22,12 @@ namespace platf {
};
struct av_pixel_buf_t {
av_pixel_buf_t(CVPixelBufferRef buf):
explicit av_pixel_buf_t(CVPixelBufferRef buf):
buf((CVPixelBufferRef) CFRetain(buf)),
locked(false) {}
uint8_t *
lock() {
[[nodiscard]] uint8_t *
lock() const {
if (!locked) {
CVPixelBufferLockBaseAddress(buf, kCVPixelBufferLock_ReadOnly);
}