Browse code

avformat: Document urls a bit

Spell-checked-by: Moritz Barsnick <barsnick@gmx.net>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 3130556c0eb09f3da3c9de6473a97937a4648d62)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>

Michael Niedermayer authored on 2016/01/23 08:35:46
Showing 1 changed files
... ...
@@ -78,6 +78,18 @@
78 78
  * if its AVClass is non-NULL, and the protocols layer. See the discussion on
79 79
  * nesting in @ref avoptions documentation to learn how to access those.
80 80
  *
81
+ * @section urls
82
+ * URL strings in libavformat are made of a scheme/protocol, a ':', and a
83
+ * scheme specific string. URLs without a scheme and ':' used for local files
84
+ * are supported but deprecated. "file:" should be used for local files.
85
+ *
86
+ * It is important that the scheme string is not taken from untrusted
87
+ * sources without checks.
88
+ *
89
+ * Note that some schemes/protocols are quite powerful, allowing access to
90
+ * both local and remote files, parts of them, concatenations of them, local
91
+ * audio and video devices and so on.
92
+ *
81 93
  * @defgroup lavf_decoding Demuxing
82 94
  * @{
83 95
  * Demuxers read a media file and split it into chunks of data (@em packets). A