search for: nr_headers

Displaying 4 results from an estimated 4 matches for "nr_headers".

2008 Feb 13
2
Header packet multiplicity
> There are a usually lot more data packets than header packets, so > having an internal length there hurts your bitrate a lot more. Of > course, it may not be significant for an uncompressed text codec. If muxed with a video, it's insignificant (well, for my test cases). > With codecs using the 'count of decodable samples' rule to calculate > their granulepos, the
2008 Feb 13
0
Header packet multiplicity
...s a special value ... iirc all the codecs have 0 on the header pages. However for stuff like CMML (and possibly Kate) it can make sense to have a timestamp of 0 for the first data packet, to signify that it it active from the very beginning of the data. That's likely why we made sure to put a nr_headers field in skeleton, so that it's simple to keep track of which of a streams packets are headers. At the time though we were only really dealing with vorbis, theora, and speex; the first two have a fixed nr of headers (3) and the last has 2+extra_headers, where extra_headers can be read from the...
2020 Jul 15
0
[PATCH nbdkit v2] curl: Implement header and cookie scripts.
...is is called with the lock held when we must run or re-run the + * header-script. + */ +static int +run_header_script (struct curl_handle *h) +{ + int fd; + char tmpfile[] = "/tmp/errorsXXXXXX"; + FILE *fp; + CLEANUP_FREE char *cmd = NULL, *line = NULL; + size_t len = 0, linelen = 0, nr_headers = 0; + + assert (header_script != NULL); /* checked by caller */ + + /* Reset the list of headers. */ + curl_slist_free_all (headers_from_script); + headers_from_script = NULL; + + /* Create a temporary file for the errors so we can redirect them + * into nbdkit_error. + */ + fd = mkstemp...
2020 Jul 15
2
[PATCH nbdkit v2] curl: Implement header and cookie scripts.
Evolution of this patch series: https://www.redhat.com/archives/libguestfs/2020-July/thread.html#00073 Instead of auth-script, this implements header-script and cookie-script. It can be used for similar purposes but the implementation is somewhat saner. Rich.