[FFmpeg-devel] [PATCH] http Transfer-Encoding chunked

Peter Holik peter
Mon Jun 8 13:52:41 CEST 2009


> On Sat, Jun 06, 2009 at 06:24:38PM +0200, Peter Holik wrote:
>> > On Mon, Jun 01, 2009 at 07:46:25PM +0200, Peter Holik wrote:
>> >> > On Mon, Jun 01, 2009 at 01:21:07PM +0200, Peter Holik wrote:
>> >> >> > On Mon, Jun 01, 2009 at 12:20:03PM +0200, Peter Holik wrote:
>> >> >> >> > On Wed, May 27, 2009 at 08:54:37AM +0200, Peter Holik wrote:
> [...]
>> here now the new patches
>
> [...]
>
>>  http.c |   14 ++++++--------
>>  1 file changed, 6 insertions(+), 8 deletions(-)
>> 2c22e07c2d36fb8368ea272c57ae9cfbb2e823e9  03-cosmetics-printf-to-dprintf.patch
>
> ok
>
> [...]
>
>> @@ -296,6 +301,28 @@ static int http_read(URLContext *h, uint8_t *buf, int size)
>>      HTTPContext *s = h->priv_data;
>>      int len;
>>
>> +    if (s->chunksize >= 0) {
>> +        if (!s->chunksize) {
>> +            char line[32];
>> +
>
>> +            for(;;) {
>> +                if (http_get_line(s, line, sizeof(line)) < 0)
>> +                    return AVERROR(EIO);
>> +
>> +                /* skip CR LF from last chunk */
>> +                if (!(*line)) continue;
>
> do{
>     ...
> }while(!*line)

ok, please apply
-------------- next part --------------
A non-text attachment was scrubbed...
Name: http-Transfer-Encoding-chunked.patch
Type: text/x-diff
Size: 2396 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090608/f502b6fd/attachment.patch>



More information about the ffmpeg-devel mailing list