diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-03-22 14:25:44 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-03-22 23:32:15 +0100 |
commit | b9fcc135c570e254b8cb8d63c50877646bf97e40 (patch) | |
tree | 154db6f5db508cd65ac18d69a14f9cf9240cfa24 /libavdevice/kmsgrab.c | |
parent | 244db7103797df3f3f87e4c1bd8cf5224e6ebff9 (diff) | |
download | ffmpeg-b9fcc135c570e254b8cb8d63c50877646bf97e40.tar.gz |
avcodec/libx265: Pass logctx as void*, not AVClass**
The latter need not be save, because av_log() expects
to get a pointer to an AVClass-enabled structure
and not only a fake object. If this function were actually
be called in the following way:
const AVClass *avcl = avctx->av_class;
handle_mdcv(&avcl, );
the AVClass's item_name would expect to point to an actual
AVCodecContext, potentially leading to a segfault.
Reviewed-by: Jan Ekström <jeebjp@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavdevice/kmsgrab.c')
0 files changed, 0 insertions, 0 deletions