This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 03a934512d0875d6c7ece802b4c4b9678182332b Author: Niklas Haas <[email protected]> AuthorDate: Fri Aug 14 16:17:29 2026 +0200 Commit: Niklas Haas <[email protected]> CommitDate: Mon Aug 31 19:10:45 2026 +0000 avformat/shared: don't try opening spacemap if cache file failed This avoids potentially clobbering `errno` if the s->mapfd fails for a different reason, and is just cleaner in general. Sponsored-by: nxtedition AB Signed-off-by: Niklas Haas <[email protected]> --- libavformat/shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/shared.c b/libavformat/shared.c index e77701d105..9849762390 100644 --- a/libavformat/shared.c +++ b/libavformat/shared.c @@ -292,7 +292,7 @@ static int shared_open(URLContext *h, const char *arg, int flags, AVDictionary * s->cache_path, s->inner->filename); s->fd = avpriv_open(s->cache_path, O_RDWR | O_CREAT, 0660); - s->mapfd = avpriv_open(s->map_path, O_RDWR | O_CREAT, 0660); + s->mapfd = s->fd >= 0 ? avpriv_open(s->map_path, O_RDWR | O_CREAT, 0660) : -1; if (s->fd < 0 || s->mapfd < 0) { ret = AVERROR(errno); av_log(h, AV_LOG_ERROR, "Failed to open '%s': %s\n", -- 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]
