summaryrefslogtreecommitdiff
path: root/libavformat/img2.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-04-04 20:11:19 +0200
committerAnton Khirnov <anton@khirnov.net>2011-04-07 18:07:16 +0200
commitf87b1b373a0df55080c1e6a5874f9a0a75c6fee8 (patch)
tree9b44dffc615a4832c3d67cc27a6eb13ca8960df1 /libavformat/img2.c
parent3d42d4937b029b604da7d53dce16c72e8edde29c (diff)
avio: AVIO_ prefixes for URL_ open flags.
Diffstat (limited to 'libavformat/img2.c')
-rw-r--r--libavformat/img2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/img2.c b/libavformat/img2.c
index bad58550c2..59d9150cdf 100644
--- a/libavformat/img2.c
+++ b/libavformat/img2.c
@@ -270,7 +270,7 @@ static int read_packet(AVFormatContext *s1, AVPacket *pkt)
s->path, s->img_number)<0 && s->img_number > 1)
return AVERROR(EIO);
for(i=0; i<3; i++){
- if (avio_open(&f[i], filename, URL_RDONLY) < 0) {
+ if (avio_open(&f[i], filename, AVIO_RDONLY) < 0) {
if(i==1)
break;
av_log(s1, AV_LOG_ERROR, "Could not open file : %s\n",filename);
@@ -354,7 +354,7 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt)
return AVERROR(EIO);
}
for(i=0; i<3; i++){
- if (avio_open(&pb[i], filename, URL_WRONLY) < 0) {
+ if (avio_open(&pb[i], filename, AVIO_WRONLY) < 0) {
av_log(s, AV_LOG_ERROR, "Could not open file : %s\n",filename);
return AVERROR(EIO);
}