summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/codecs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/codecs.c b/apps/codecs.c
index eaf81d3..e0ba096 100644
--- a/apps/codecs.c
+++ b/apps/codecs.c
@@ -200,10 +200,11 @@ static int codec_load_ram(int size, struct codec_api *api)
return CODEC_ERROR;
if (hdr == NULL
- || hdr->magic != CODEC_MAGIC
+ || (hdr->magic != CODEC_MAGIC
#ifdef HAVE_RECORDING
&& hdr->magic != CODEC_ENC_MAGIC
#endif
+ )
|| hdr->target_id != TARGET_ID) {
sim_codec_close(pd);
return CODEC_ERROR;