X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fmd5proto.c;h=05ee9d366a1a0cf741765b6c7aa1684b83d476e9;hb=4dcd1a3145dd93602b86a44ebc07d98ca2a30ab6;hp=4e041b020f13138bcde8136b74a48806c095caad;hpb=b429440d857e01250666ed1a68c86c77e575b9ee;p=ffmpeg diff --git a/libavformat/md5proto.c b/libavformat/md5proto.c index 4e041b020f1..05ee9d366a1 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);