[FFmpeg-devel] [PATCH] http Transfer-Encoding chunked
Michael Niedermayer
michaelni
Tue Jun 9 02:22:46 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
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
I hate to see young programmers poisoned by the kind of thinking
Ulrich Drepper puts forward since it is simply too narrow -- Roman Shaposhnik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090609/0b748e9c/attachment.pgp>
More information about the ffmpeg-devel
mailing list