aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/avio.h
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2011-04-28 10:36:44 +0300
committerMartin Storsjö <martin@martin.st>2011-04-28 23:28:17 +0300
commit5b81e295931bad4dac0af29333b4e2a203b3f4d4 (patch)
tree68eaf9c4e62150644ffa0dc4b3efe4ce489536c6 /libavformat/avio.h
parent05a18adfb1e7e94d546112ff8e6f0828c89382a4 (diff)
downloadffmpeg-5b81e295931bad4dac0af29333b4e2a203b3f4d4.tar.gz
avio: Fix the deprecated fallback URL-prefixed open flags
While deprecated, they're totally useless as long as their values are different from the AVIO_FLAG values that are used internally. Currently, this leads to old libav applications still compiling correctly (since we haven't removed the fallback wrappers), but failing since the functions internally compare to the new AVIO_FLAG values. These should be removed at some point, but they aren't removed yet. The intent is to be able to recompile an old application against the new ABI without modifying the code, and this doesn't work currently. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/avio.h')
-rw-r--r--libavformat/avio.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h
index a4ab5ae28c..b98137b83b 100644
--- a/libavformat/avio.h
+++ b/libavformat/avio.h
@@ -150,9 +150,9 @@ attribute_deprecated int url_poll(URLPollEntry *poll_table, int n, int timeout);
* constants, optionally ORed with other flags.
* @{
*/
-#define URL_RDONLY 0 /**< read-only */
-#define URL_WRONLY 1 /**< write-only */
-#define URL_RDWR 2 /**< read-write */
+#define URL_RDONLY 1 /**< read-only */
+#define URL_WRONLY 2 /**< write-only */
+#define URL_RDWR (URL_RDONLY|URL_WRONLY) /**< read-write */
/**
* @}
*/