diff options
author | Philip DeCamp <decamp@mit.edu> | 2014-09-24 16:15:18 -0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-09-24 22:57:40 +0200 |
commit | 857fc0a71f1b52fbba3281ba64b5a35195458622 (patch) | |
tree | 667fb6c896bad7f0520359bd71642aeb8eb7e37d /libavutil | |
parent | 70277d1d234b33a80477f75435758a194fed5873 (diff) | |
download | ffmpeg-857fc0a71f1b52fbba3281ba64b5a35195458622.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>
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/opt.c | 2 |
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; } |