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 987d13d13c avformat/avformat: Fix warning: assignment discards const
qualifier from pointer target type
987d13d13c is described below
commit 987d13d13c403cd633f126cba868d6c575bf11bc
Author: Michael Niedermayer <[email protected]>
AuthorDate: Fri Mar 6 15:57:49 2026 +0100
Commit: Michael Niedermayer <[email protected]>
CommitDate: Fri Mar 6 15:59:20 2026 +0100
avformat/avformat: Fix warning: assignment discards const qualifier from
pointer target type
Signed-off-by: Michael Niedermayer <[email protected]>
---
libavformat/avformat.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavformat/avformat.c b/libavformat/avformat.c
index 12af76c610..8a98f2e53e 100644
--- a/libavformat/avformat.c
+++ b/libavformat/avformat.c
@@ -890,12 +890,12 @@ int ff_format_check_set_url(AVFormatContext *s, const
char *url)
return AVERROR(EINVAL);
}
- url = av_strdup(url);
- if (!url)
+ char *urldup = av_strdup(url);
+ if (!urldup)
return AVERROR(ENOMEM);
av_freep(&s->url);
- s->url = url;
+ s->url = urldup;
return 0;
}
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]