md5proto: Fix order of operations.

This commit is contained in:
Alex Converse 2011-11-27 16:16:44 -08:00
parent 999e7ebd23
commit 2b45222b6a
1 changed files with 1 additions and 1 deletions

View 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);