[FFmpeg-cvslog] avformat/file: Constify android content protocol
Andreas Rheinhardt
git at videolan.org
Tue Mar 26 07:44:06 EET 2024
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sat Mar 23 13:06:05 2024 +0100| [ebe832640945c531b0ee9b82ae745a11cd9f8e71] | committer: Andreas Rheinhardt
avformat/file: Constify android content protocol
(The discrepancy between the definition and the declaration
in protocols.c is actually UB.)
Reviewed-by: Matthieu Bouron <matthieu.bouron at gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ebe832640945c531b0ee9b82ae745a11cd9f8e71
---
libavformat/file.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/file.c b/libavformat/file.c
index dd5819c06f..8f3b35c795 100644
--- a/libavformat/file.c
+++ b/libavformat/file.c
@@ -670,7 +670,7 @@ done:
return ret;
}
-URLProtocol ff_android_content_protocol = {
+const URLProtocol ff_android_content_protocol = {
.name = "content",
.url_open = android_content_open,
.url_read = file_read,
More information about the ffmpeg-cvslog
mailing list