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

Peter Holik peter
Sat Jun 13 13:55:12 CEST 2009


> On Mon, Jun 08, 2009 at 01:52:41PM +0200, Peter Holik wrote:
>> > 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
>
> might be ok, though i would prefer if someone who is fammiliar with the fine
> details of http could take a look too
> also it should be tested

ping




More information about the ffmpeg-devel mailing list