OSDN Git Service

md5proto: Fix order of operations.
authorAlex Converse <alex.converse@gmail.com>
Mon, 28 Nov 2011 00:16:44 +0000 (16:16 -0800)
committerAlex Converse <alex.converse@gmail.com>
Mon, 28 Nov 2011 00:16:44 +0000 (16:16 -0800)
libavformat/md5proto.c

index 8e61e5b..c580bfd 100644 (file)
@@ -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);