aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip DeCamp <decamp@mit.edu>2014-09-24 16:15:18 -0400
committerMichael Niedermayer <michaelni@gmx.at>2014-10-03 03:40:59 +0200
commitf913da3e15e09c7ec897206cde634b5d7b5162d4 (patch)
tree62e3c2302508d522d5eb9d3c190bf61c85dd2478
parented9c6529f032b16c8a94ff70caea2e17a4e68f99 (diff)
downloadffmpeg-f913da3e15e09c7ec897206cde634b5d7b5162d4.tar.gz
libavutil/opt: fix av_opt_set_channel_layout() to access correct memory address
Signed-off-by: Philip DeCamp <decamp@mit.edu> Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 857fc0a71f1b52fbba3281ba64b5a35195458622) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavutil/opt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/opt.c b/libavutil/opt.c
index 694295dc35..4115484498 100644
--- a/libavutil/opt.c
+++ b/libavutil/opt.c
@@ -631,7 +631,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;
}