md5proto: Fix order of operations.

pull/2/head
Alex Converse 13 years ago
parent 999e7ebd23
commit 2b45222b6a
  1. 2
      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);

Loading…
Cancel
Save