mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-03 02:58:02 +00:00
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>
This commit is contained in:
parent
70277d1d23
commit
857fc0a71f
@ -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);
|
"The value set by option '%s' is not a channel layout.\n", o->name);
|
||||||
return AVERROR(EINVAL);
|
return AVERROR(EINVAL);
|
||||||
}
|
}
|
||||||
*(int *)(((int64_t *)target_obj) + o->offset) = cl;
|
*(int64_t *)(((uint8_t *)target_obj) + o->offset) = cl;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user