[FFmpeg-cvslog] r23664 - trunk/libavformat/http.c

rbultje subversion
Sun Jun 20 23:38:17 CEST 2010


Author: rbultje
Date: Sun Jun 20 23:38:16 2010
New Revision: 23664

Log:
Use url_write(), not http_write(), for sending the HTTP headers. This prevents
them from being sent using chunked encoding (I don't think this ever happened,
but either way it would be wrong).

Modified:
   trunk/libavformat/http.c

Modified: trunk/libavformat/http.c
==============================================================================
--- trunk/libavformat/http.c	Sun Jun 20 22:13:11 2010	(r23663)
+++ trunk/libavformat/http.c	Sun Jun 20 23:38:16 2010	(r23664)
@@ -53,7 +53,6 @@ typedef struct {
 
 static int http_connect(URLContext *h, const char *path, const char *hoststr,
                         const char *auth, int *new_location);
-static int http_write(URLContext *h, const uint8_t *buf, int size);
 
 void ff_http_set_headers(URLContext *h, const char *headers)
 {
@@ -323,7 +322,7 @@ static int http_connect(URLContext *h, c
              authstr ? authstr : "");
 
     av_freep(&authstr);
-    if (http_write(h, s->buffer, strlen(s->buffer)) < 0)
+    if (url_write(s->hd, s->buffer, strlen(s->buffer)) < 0)
         return AVERROR(EIO);
 
     /* init input buffer */



More information about the ffmpeg-cvslog mailing list