summaryrefslogtreecommitdiff
path: root/libavformat/sapenc.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-04-15 16:42:09 +0200
committerAnton Khirnov <anton@khirnov.net>2011-04-19 19:47:58 +0200
commit59d96941f0285a501989d5f2c9b69be0a1393ed5 (patch)
tree8a8df3842d20ac6543309dc4063376bf50580944 /libavformat/sapenc.c
parent490a022d86ef1c506a79744c5a95368af356fc69 (diff)
downloadffmpeg-59d96941f0285a501989d5f2c9b69be0a1393ed5.tar.gz
avio: remove AVIO_* access symbols in favor of new AVIO_FLAG_* symbols
Make AVIO_FLAG_ access constants work as flags, and in particular fix the behavior of functions (such as avio_check()) which expect them to be flags rather than modes. This breaks API.
Diffstat (limited to 'libavformat/sapenc.c')
-rw-r--r--libavformat/sapenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/sapenc.c b/libavformat/sapenc.c
index 455e65341f..3abd79e4e8 100644
--- a/libavformat/sapenc.c
+++ b/libavformat/sapenc.c
@@ -146,7 +146,7 @@ static int sap_write_header(AVFormatContext *s)
"?ttl=%d", ttl);
if (!same_port)
base_port += 2;
- ret = ffurl_open(&fd, url, AVIO_WRONLY);
+ ret = ffurl_open(&fd, url, AVIO_FLAG_WRITE);
if (ret) {
ret = AVERROR(EIO);
goto fail;
@@ -158,7 +158,7 @@ static int sap_write_header(AVFormatContext *s)
ff_url_join(url, sizeof(url), "udp", NULL, announce_addr, port,
"?ttl=%d&connect=1", ttl);
- ret = ffurl_open(&sap->ann_fd, url, AVIO_WRONLY);
+ ret = ffurl_open(&sap->ann_fd, url, AVIO_FLAG_WRITE);
if (ret) {
ret = AVERROR(EIO);
goto fail;