[FFmpeg-devel] [PATCH] libavformat/internal.h - Adjust MAX_URL_SIZE to 8k

Marton Balint cus at passwd.hu
Sun May 10 11:16:52 EEST 2020



On Sun, 10 May 2020, Joey Smith wrote:

> Some real-world sites use an authorization header with a bearer token; when
> combined with lengthy request parameters to identify the video segment,
> it's rather trivial these days to have a request body of more than 4k bytes.
>
> Because MAX_URL_SIZE is hard-coded to 4k bytes in libavformat/internal.h,
> this causes ffmpeg to terminate the connection early, even though the HTTP
> request is otherwise perfectly valid.

If that is the case then BUFFER_SIZE should be increased instead to
(MAX_URL_SIZE + HTTP_HEADERS_SIZE) at http.c, no?

Thanks,
Marton


More information about the ffmpeg-devel mailing list