This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new 971ea9d6a2 avcodec/dovi_rpuenc: compress the DM metadata only against
previous DM metadata
971ea9d6a2 is described below
commit 971ea9d6a2a9ae4c770936f0569cf40720d4c304
Author: Michael Niedermayer <[email protected]>
AuthorDate: Tue Sep 15 06:13:53 2026 +0200
Commit: michaelni <[email protected]>
CommitDate: Sat Sep 19 18:51:29 2026 +0000
avcodec/dovi_rpuenc: compress the DM metadata only against previous DM
metadata
s->dm is allocated once DM metadata is present, but with compression
enabled cmp_dm_level0() dereferenced it unconditionally.
Fixes: NULL pointer dereference
Fixes: 1fsqvEdvoL5U
Found-by: Zheng Yu @ Depthfirst
---
libavcodec/dovi_rpuenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/dovi_rpuenc.c b/libavcodec/dovi_rpuenc.c
index d0abcc0d9e..4bd87f496f 100644
--- a/libavcodec/dovi_rpuenc.c
+++ b/libavcodec/dovi_rpuenc.c
@@ -738,7 +738,7 @@ int ff_dovi_rpu_generate(DOVIContext *s, const
AVDOVIMetadata *metadata,
dm_compression = 0;
if (dv_md_compression != AV_DOVI_COMPRESSION_NONE) {
- if (!cmp_dm_level0(s->dm, color) && try_reuse_ext(s->ext_blocks,
metadata))
+ if (s->dm && !cmp_dm_level0(s->dm, color) &&
try_reuse_ext(s->ext_blocks, metadata))
dm_compression = 1;
}
--
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]