summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavformat/md5proto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/md5proto.c b/libavformat/md5proto.c
index 8e61e5be4c..c580bfde80 100644
--- a/libavformat/md5proto.c
+++ b/libavformat/md5proto.c
@@ -36,7 +36,7 @@ static int md5_open(URLContext *h, const char *filename, int flags)
return -1;
}
- if (!flags & AVIO_FLAG_WRITE)
+ if (!(flags & AVIO_FLAG_WRITE))
return AVERROR(EINVAL);
av_md5_init(h->priv_data);