You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avcodec/av1: signal the presence of Film Grain in the decoder context
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -575,6 +575,11 @@ static int set_context_with_sequence(AVCodecContext *avctx,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (seq->film_grain_params_present)
|
||||||
|
avctx->properties |= FF_CODEC_PROPERTY_FILM_GRAIN;
|
||||||
|
else
|
||||||
|
avctx->properties &= ~FF_CODEC_PROPERTY_FILM_GRAIN;
|
||||||
|
|
||||||
if (avctx->width != width || avctx->height != height) {
|
if (avctx->width != width || avctx->height != height) {
|
||||||
int ret = ff_set_dimensions(avctx, width, height);
|
int ret = ff_set_dimensions(avctx, width, height);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
|
Reference in New Issue
Block a user