aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/audio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/audio.c b/src/audio.c
index d17679969..203c37246 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -84,8 +84,7 @@ void copyAudioFormat(AudioFormat * dest, AudioFormat * src)
int cmpAudioFormat(AudioFormat * f1, AudioFormat * f2)
{
- if (f1 && f2 && (f1->sampleRate == f2->sampleRate) &&
- (f1->bits == f2->bits) && (f1->channels == f2->channels))
+ if (f1 && f2 && (0 == memcmp(f1, f2, sizeof(AudioFormat))))
return 0;
return 1;
}