From 2b45222b6a475d37a349f9abb877e20d99bca335 Mon Sep 17 00:00:00 2001 From: Alex Converse Date: Sun, 27 Nov 2011 16:16:44 -0800 Subject: md5proto: Fix order of operations. --- libavformat/md5proto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/md5proto.c') 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); -- cgit v1.2.3