From e8ec8f7dd7e9b1a41be9db9ac6f7e8e6cf470f2f Mon Sep 17 00:00:00 2001 From: He Junyan Date: Fri, 22 Jan 2021 16:56:24 +0800 Subject: [PATCH] codecparsers: av1: Fix a typo in frame_restoration_type setting. Fixes: #1500 Part-of: --- gst-libs/gst/codecparsers/gstav1parser.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gst-libs/gst/codecparsers/gstav1parser.c b/gst-libs/gst/codecparsers/gstav1parser.c index 7e4b8614bc..053f2f50ca 100644 --- a/gst-libs/gst/codecparsers/gstav1parser.c +++ b/gst-libs/gst/codecparsers/gstav1parser.c @@ -2602,9 +2602,9 @@ gst_av1_parse_loop_restoration_params (GstAV1Parser * parser, if (frame_header->all_lossless || frame_header->allow_intrabc || !seq_header->enable_restoration) { - lr_params->frame_restoration_type[0] = GST_AV1_FRAME_RESTORE_NONE; - lr_params->frame_restoration_type[0] = GST_AV1_FRAME_RESTORE_NONE; - lr_params->frame_restoration_type[0] = GST_AV1_FRAME_RESTORE_NONE; + for (i = 0; i < GST_AV1_MAX_NUM_PLANES; i++) + lr_params->frame_restoration_type[i] = GST_AV1_FRAME_RESTORE_NONE; + lr_params->uses_lr = 0; goto success; }