summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavutil/opt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/opt.c b/libavutil/opt.c
index ca4edb827e..ee72a96471 100644
--- a/libavutil/opt.c
+++ b/libavutil/opt.c
@@ -627,7 +627,7 @@ int av_opt_set_channel_layout(void *obj, const char *name, int64_t cl, int searc
"The value set by option '%s' is not a channel layout.\n", o->name);
return AVERROR(EINVAL);
}
- *(int *)(((int64_t *)target_obj) + o->offset) = cl;
+ *(int64_t *)(((uint8_t *)target_obj) + o->offset) = cl;
return 0;
}