[FFmpeg-cvslog] avcodec/hevcdec: Fix precedence, bogus film grain warning
Andreas Rheinhardt
git at videolan.org
Tue Apr 23 00:03:50 EEST 2024
ffmpeg | branch: release/7.0 | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Fri Apr 19 13:59:40 2024 +0200| [2d3ee7c069d631e8a32b647cb765028ea76b3a2e] | committer: Jan Ekström
avcodec/hevcdec: Fix precedence, bogus film grain warning
Reviewed-by: Niklas Haas <ffmpeg at haasn.xyz>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
(cherry picked from commit bba996d6cdac15367f265e245987477d0f7b1899)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2d3ee7c069d631e8a32b647cb765028ea76b3a2e
---
libavcodec/hevcdec.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c
index 5a3d6fc4f1..08fd3be43c 100644
--- a/libavcodec/hevcdec.c
+++ b/libavcodec/hevcdec.c
@@ -2897,10 +2897,10 @@ static int hevc_frame_start(HEVCContext *s)
goto fail;
if (s->ref->needs_fg &&
- ( s->sei.common.film_grain_characteristics.present &&
- !ff_h274_film_grain_params_supported(s->sei.common.film_grain_characteristics.model_id,
- s->ref->frame->format))
- || !av_film_grain_params_select(s->ref->frame)) {
+ (s->sei.common.film_grain_characteristics.present &&
+ !ff_h274_film_grain_params_supported(s->sei.common.film_grain_characteristics.model_id,
+ s->ref->frame->format)
+ || !av_film_grain_params_select(s->ref->frame))) {
av_log_once(s->avctx, AV_LOG_WARNING, AV_LOG_DEBUG, &s->film_grain_warning_shown,
"Unsupported film grain parameters. Ignoring film grain.\n");
s->ref->needs_fg = 0;
More information about the ffmpeg-cvslog
mailing list