summaryrefslogtreecommitdiff
path: root/axfer/mapper-multiple.c
diff options
context:
space:
mode:
Diffstat (limited to 'axfer/mapper-multiple.c')
-rw-r--r--axfer/mapper-multiple.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/axfer/mapper-multiple.c b/axfer/mapper-multiple.c
index 8566efb..00569af 100644
--- a/axfer/mapper-multiple.c
+++ b/axfer/mapper-multiple.c
@@ -114,7 +114,8 @@ static int multiple_pre_process(struct mapper_context *mapper,
// configured to store one sample per frame.
if (mapper->type == MAPPER_TYPE_DEMUXER) {
for (i = 0; i < cntr_count; ++i) {
- if (cntrs->samples_per_frame != 1)
+ cntr = cntrs + i;
+ if (cntr->samples_per_frame != 1)
return -EINVAL;
}
}