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

Joey Smith joeysmith at gmail.com
Sun May 10 11:00:27 EEST 2020


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.

I am proposing the attached patch, to switch this hard-coded to default
from 4k to 8k, as that is the default request body limit in Apache, and
most other httpds seem to support at least as much, if not more.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libavformat-internal.h-Adjust-MAX_URL_SIZE-to-8k.patch
Type: application/octet-stream
Size: 713 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200510/79dc6336/attachment.obj>


More information about the ffmpeg-devel mailing list