[FFmpeg-devel] [PATCH 1/2] avformat/http: return EINVAL if ff_http_do_new_request is called with non-http URLContext

Carl Eugen Hoyos ceffmpeg at gmail.com
Sat Dec 30 20:04:56 EET 2017


2017-12-30 0:41 GMT+01:00 Aman Gupta <ffmpeg at tmm1.net>:

> +    if (!h->prot ||
> +        !(!strcmp(h->prot->name, "http") ||
> +          !strcmp(h->prot->name, "https")))

Can't this be simplified?

Carl Eugen


More information about the ffmpeg-devel mailing list