Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(750)

Unified Diff: source/patched-ffmpeg-mt/libavformat/http.c

Issue 3384002: ffmpeg source update for sep 09 (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/ffmpeg/
Patch Set: Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/patched-ffmpeg-mt/libavformat/h264dec.c ('k') | source/patched-ffmpeg-mt/libavformat/httpauth.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/patched-ffmpeg-mt/libavformat/http.c
===================================================================
--- source/patched-ffmpeg-mt/libavformat/http.c (revision 59334)
+++ source/patched-ffmpeg-mt/libavformat/http.c (working copy)
@@ -35,7 +35,6 @@
/* used for protocol handling */
#define BUFFER_SIZE 1024
-#define URL_SIZE 4096
#define MAX_REDIRECTS 8
typedef struct {
@@ -46,7 +45,7 @@
int http_code;
int64_t chunksize; /**< Used if "Transfer-Encoding: chunked" otherwise -1. */
int64_t off, filesize;
- char location[URL_SIZE];
+ char location[MAX_URL_SIZE];
HTTPAuthState auth_state;
unsigned char headers[BUFFER_SIZE];
int willclose; /**< Set if the server correctly handles Connection: close and will close the connection after feeding us the content. */
@@ -162,7 +161,7 @@
h->is_streamed = 1;
s->filesize = -1;
- av_strlcpy(s->location, uri, URL_SIZE);
+ av_strlcpy(s->location, uri, sizeof(s->location));
return http_open_cnx(h);
}
« no previous file with comments | « source/patched-ffmpeg-mt/libavformat/h264dec.c ('k') | source/patched-ffmpeg-mt/libavformat/httpauth.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698