Signed-off-by: Anton Khirnov <anton@khirnov.net>
Chris Wilson authored on 2011/07/07 05:13:10... | ... |
@@ -2128,13 +2128,12 @@ static int open_input_stream(HTTPContext *c, const char *info) |
2128 | 2128 |
char buf[128]; |
2129 | 2129 |
char input_filename[1024]; |
2130 | 2130 |
AVFormatContext *s = NULL; |
2131 |
- int buf_size, i, ret; |
|
2131 |
+ int i, ret; |
|
2132 | 2132 |
int64_t stream_pos; |
2133 | 2133 |
|
2134 | 2134 |
/* find file name */ |
2135 | 2135 |
if (c->stream->feed) { |
2136 | 2136 |
strcpy(input_filename, c->stream->feed->feed_filename); |
2137 |
- buf_size = FFM_PACKET_SIZE; |
|
2138 | 2137 |
/* compute position (absolute time) */ |
2139 | 2138 |
if (av_find_info_tag(buf, sizeof(buf), "date", info)) { |
2140 | 2139 |
if ((ret = av_parse_time(&stream_pos, buf, 0)) < 0) |
... | ... |
@@ -2146,7 +2145,6 @@ static int open_input_stream(HTTPContext *c, const char *info) |
2146 | 2146 |
stream_pos = av_gettime() - c->stream->prebuffer * (int64_t)1000; |
2147 | 2147 |
} else { |
2148 | 2148 |
strcpy(input_filename, c->stream->feed_filename); |
2149 |
- buf_size = 0; |
|
2150 | 2149 |
/* compute position (relative time) */ |
2151 | 2150 |
if (av_find_info_tag(buf, sizeof(buf), "date", info)) { |
2152 | 2151 |
if ((ret = av_parse_time(&stream_pos, buf, 1)) < 0) |