aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/vaapi_encode.c
diff options
context:
space:
mode:
authorJoey Smith <joeysmith@gmail.com>2020-05-10 23:05:51 -0600
committerMarton Balint <cus@passwd.hu>2020-05-21 22:45:21 +0200
commitd29c42974487d5fa0a5c1b05a09da5c5818ab63e (patch)
tree35506efe120bac8f97003fc90cd74054e123eead /doc/examples/vaapi_encode.c
parent13b1bbff0be1eeb9471bd5eb9911da15f4b4ac50 (diff)
downloadffmpeg-d29c42974487d5fa0a5c1b05a09da5c5818ab63e.tar.gz
avformat/http: increase BUFFER_SIZE to MAX_URL_SIZE + HTTP_HEADERS_SIZE
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. MAX_URL_SIZE is hard-coded to 4k bytes in libavformat/internal.h, and HTTP_HEADERS_SIZE is 4k as well in libavformat/http.h, so this patch increases the buffer size 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. Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'doc/examples/vaapi_encode.c')
0 files changed, 0 insertions, 0 deletions