aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm/PcmDsdUsb.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/pcm/PcmDsdUsb.cxx')
-rw-r--r--src/pcm/PcmDsdUsb.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pcm/PcmDsdUsb.cxx b/src/pcm/PcmDsdUsb.cxx
index 2d0f33a15..a42b03e64 100644
--- a/src/pcm/PcmDsdUsb.cxx
+++ b/src/pcm/PcmDsdUsb.cxx
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2013 The Music Player Daemon Project
+ * Copyright (C) 2003-2014 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
@@ -22,6 +22,8 @@
#include "PcmBuffer.hxx"
#include "AudioFormat.hxx"
+#include <assert.h>
+
constexpr
static inline uint32_t
pcm_two_dsd_to_usb_marker1(uint8_t a, uint8_t b)
@@ -43,7 +45,7 @@ pcm_dsd_to_usb(PcmBuffer &buffer, unsigned channels,
size_t *dest_size_r)
{
assert(audio_valid_channel_count(channels));
- assert(src != NULL);
+ assert(src != nullptr);
assert(src_size > 0);
assert(src_size % channels == 0);