X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fmd5proto.c;h=05ee9d366a1a0cf741765b6c7aa1684b83d476e9;hb=4dcd1a3145dd93602b86a44ebc07d98ca2a30ab6;hp=3f099da4401a12ced0c58a26380f00a0f4515506;hpb=eae3cf06a5410cf6d06235de4ceea28e33e53be3;p=ffmpeg diff --git a/libavformat/md5proto.c b/libavformat/md5proto.c index 3f099da4401..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); @@ -65,7 +65,8 @@ static int md5_close(URLContext *h) av_strstart(filename, "md5:", &filename); if (*filename) { - err = ffurl_open(&out, filename, AVIO_FLAG_WRITE); + err = ffurl_open(&out, filename, AVIO_FLAG_WRITE, + &h->interrupt_callback, NULL); if (err) return err; err = ffurl_write(out, buf, i*2+1);