avformat: demux: fix incompatible-pointer-types warning

Warning treated as error on some configuration.

Too bad av_stream_get_side_data() is not returning a void *...
This commit is contained in:
Thomas Guillem 2023-03-02 16:48:11 +01:00 committed by Jean-Baptiste Kempf
parent 63357faa16
commit d7b792f7da
1 changed files with 3 additions and 2 deletions

View File

@ -188,8 +188,9 @@ static void get_rotation(es_format_t *fmt, AVStream *s)
static void get_dovi_config(es_format_t *fmt, AVStream *s)
{
#if LIBAVUTIL_VERSION_CHECK( 57, 16, 100 )
AVDOVIDecoderConfigurationRecord *cfg;
cfg = av_stream_get_side_data(s, AV_PKT_DATA_DOVI_CONF, NULL);
AVDOVIDecoderConfigurationRecord *cfg =
(AVDOVIDecoderConfigurationRecord *)
av_stream_get_side_data(s, AV_PKT_DATA_DOVI_CONF, NULL);
if (!cfg)
return;