aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Converse <alex.converse@gmail.com>2011-11-27 16:16:44 -0800
committerAlex Converse <alex.converse@gmail.com>2011-11-27 16:16:44 -0800
commit2b45222b6a475d37a349f9abb877e20d99bca335 (patch)
treeb9d67d978e76484f99e7ccd0050674e5417e889f
parent999e7ebd235058d4b006b8445def2186b5757262 (diff)
downloadffmpeg-2b45222b6a475d37a349f9abb877e20d99bca335.tar.gz
md5proto: Fix order of operations.
-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);