avutil/film_grain_params: remove unused variables

These variables are never read from, so they trigger -Wunused-variables

Signed-off-by: Leo Izen <leo.izen@gmail.com>
This commit is contained in:
Leo Izen 2024-03-23 20:10:13 -04:00
parent afa471d0ef
commit 438fcc3f6e
No known key found for this signature in database
GPG Key ID: 764E48EA48221833
1 changed files with 0 additions and 3 deletions

View File

@ -53,8 +53,6 @@ const AVFilmGrainParams *av_film_grain_params_select(const AVFrame *frame)
{
const AVFilmGrainParams *fgp, *best = NULL;
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(frame->format);
const AVFilmGrainAOMParams *aom;
const AVFilmGrainH274Params *h274;
int bit_depth_luma, bit_depth_chroma;
if (!desc)
return NULL;
@ -88,7 +86,6 @@ const AVFilmGrainParams *av_film_grain_params_select(const AVFrame *frame)
case AV_FILM_GRAIN_PARAMS_NONE:
continue;
case AV_FILM_GRAIN_PARAMS_AV1:
aom = &fgp->codec.aom;
/* AOM FGS needs an exact match for the chroma resolution */
if (fgp->subsampling_x != desc->log2_chroma_w ||
fgp->subsampling_y != desc->log2_chroma_h)