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 e772f50a65 fftools/ffmpeg_demux: ensure tile grid stream groups are
sane
e772f50a65 is described below
commit e772f50a65c607b78d97087d891285ae32283796
Author: James Almer <[email protected]>
AuthorDate: Sat Jun 13 21:47:10 2026 -0300
Commit: James Almer <[email protected]>
CommitDate: Sat Jun 13 21:52:32 2026 -0300
fftools/ffmpeg_demux: ensure tile grid stream groups are sane
This is already checked in libavformat, at least in the only demuxer that
creates them, but best not risk an out-of-bounds access in case a new
demuxer
doesn't take the proper measures.
Signed-off-by: James Almer <[email protected]>
---
fftools/ffmpeg_demux.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/fftools/ffmpeg_demux.c b/fftools/ffmpeg_demux.c
index 04ee2cc2ed..46e0d54d25 100644
--- a/fftools/ffmpeg_demux.c
+++ b/fftools/ffmpeg_demux.c
@@ -1801,6 +1801,11 @@ static int istg_parse_tile_grid(const OptionsContext *o,
Demuxer *d, InputStream
if (tg->nb_tiles == 1)
return 0;
+ if (!tg->nb_tiles) {
+ av_log(istg, AV_LOG_FATAL, "A demuxer exported an invalid tile group
stream group. "
+ "This is a bug, please report it.\n");
+ return AVERROR_BUG;
+ }
memset(&opts, 0, sizeof(opts));
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]