mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-22 15:23:11 +00:00
avutil/film_grain_params: initialize VCS to UNSPECIFIED
This commit is contained in:
parent
35d2960dcd
commit
a08f358769
@ -30,13 +30,20 @@ AVFilmGrainParams *av_film_grain_params_alloc(size_t *size)
|
||||
|
||||
AVFilmGrainParams *av_film_grain_params_create_side_data(AVFrame *frame)
|
||||
{
|
||||
AVFilmGrainParams *fgp;
|
||||
AVFrameSideData *side_data = av_frame_new_side_data(frame,
|
||||
AV_FRAME_DATA_FILM_GRAIN_PARAMS,
|
||||
sizeof(AVFilmGrainParams));
|
||||
if (!side_data)
|
||||
return NULL;
|
||||
|
||||
memset(side_data->data, 0, sizeof(AVFilmGrainParams));
|
||||
fgp = (AVFilmGrainParams *) side_data->data;
|
||||
*fgp = (AVFilmGrainParams) {
|
||||
.color_range = AVCOL_RANGE_UNSPECIFIED,
|
||||
.color_primaries = AVCOL_PRI_UNSPECIFIED,
|
||||
.color_trc = AVCOL_TRC_UNSPECIFIED,
|
||||
.color_space = AVCOL_SPC_UNSPECIFIED,
|
||||
};
|
||||
|
||||
return (AVFilmGrainParams *)side_data->data;
|
||||
return fgp;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user