You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
avcodec/aom_film_grain: Cast const away to suppress compiler warning
av_frame_side_data_add() typically takes ownership of the provided AVBufferRef reference and therefore uses a parameter of type AVBufferRef**; yet with the AV_FRAME_SIDE_DATA_FLAG_NEW_REF, it creates new references instead, without touching the given reference. Therefore it is safe to cast const away. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@ -366,7 +366,8 @@ int ff_aom_attach_film_grain_sets(const AVFilmGrainAFGS1Params *s, AVFrame *fram
|
||||
continue;
|
||||
|
||||
if (!av_frame_side_data_add(&frame->side_data, &frame->nb_side_data,
|
||||
AV_FRAME_DATA_FILM_GRAIN_PARAMS, &s->sets[i],
|
||||
AV_FRAME_DATA_FILM_GRAIN_PARAMS,
|
||||
(AVBufferRef**)&s->sets[i],
|
||||
AV_FRAME_SIDE_DATA_FLAG_NEW_REF))
|
||||
return AVERROR(ENOMEM);
|
||||
}
|
||||
|
Reference in New Issue
Block a user