X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fmd5proto.c;h=f7c8b78fee69ed9fb58bc3068b48a172824456c7;hb=7feb7f16a80a8d8754d2b32228f08470ecee2dca;hp=4e041b020f13138bcde8136b74a48806c095caad;hpb=8709ba907a7f6f44e392161221d9628fa74b22f6;p=ffmpeg diff --git a/libavformat/md5proto.c b/libavformat/md5proto.c index 4e041b020f1..f7c8b78fee6 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); @@ -79,16 +79,11 @@ static int md5_close(URLContext *h) return err; } -static int md5_get_handle(URLContext *h) -{ - return (intptr_t)h->priv_data; -} URLProtocol ff_md5_protocol = { .name = "md5", .url_open = md5_open, .url_write = md5_write, .url_close = md5_close, - .url_get_file_handle = md5_get_handle, .priv_data_size = PRIV_SIZE, };