Commit 8efbbf8a authored by bcoudurier's avatar bcoudurier

cosmetics, braces placement

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13908 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5d2eb59e
...@@ -1692,8 +1692,7 @@ static void compute_status(HTTPContext *c) ...@@ -1692,8 +1692,7 @@ static void compute_status(HTTPContext *c)
stream->conns_served); stream->conns_served);
fmt_bytecount(pb, stream->bytes_served); fmt_bytecount(pb, stream->bytes_served);
switch(stream->stream_type) { switch(stream->stream_type) {
case STREAM_TYPE_LIVE: case STREAM_TYPE_LIVE: {
{
int audio_bit_rate = 0; int audio_bit_rate = 0;
int video_bit_rate = 0; int video_bit_rate = 0;
const char *audio_codec_name = ""; const char *audio_codec_name = "";
...@@ -1931,13 +1930,11 @@ static int open_input_stream(HTTPContext *c, const char *info) ...@@ -1931,13 +1930,11 @@ static int open_input_stream(HTTPContext *c, const char *info)
strcpy(input_filename, c->stream->feed->feed_filename); strcpy(input_filename, c->stream->feed->feed_filename);
buf_size = FFM_PACKET_SIZE; buf_size = FFM_PACKET_SIZE;
/* compute position (absolute time) */ /* compute position (absolute time) */
if (find_info_tag(buf, sizeof(buf), "date", info)) if (find_info_tag(buf, sizeof(buf), "date", info)) {
{
stream_pos = parse_date(buf, 0); stream_pos = parse_date(buf, 0);
if (stream_pos == INT64_MIN) if (stream_pos == INT64_MIN)
return -1; return -1;
} } else if (find_info_tag(buf, sizeof(buf), "buffer", info)) {
else if (find_info_tag(buf, sizeof(buf), "buffer", info)) {
int prebuffer = strtol(buf, 0, 10); int prebuffer = strtol(buf, 0, 10);
stream_pos = av_gettime() - prebuffer * (int64_t)1000000; stream_pos = av_gettime() - prebuffer * (int64_t)1000000;
} else } else
...@@ -1946,13 +1943,11 @@ static int open_input_stream(HTTPContext *c, const char *info) ...@@ -1946,13 +1943,11 @@ static int open_input_stream(HTTPContext *c, const char *info)
strcpy(input_filename, c->stream->feed_filename); strcpy(input_filename, c->stream->feed_filename);
buf_size = 0; buf_size = 0;
/* compute position (relative time) */ /* compute position (relative time) */
if (find_info_tag(buf, sizeof(buf), "date", info)) if (find_info_tag(buf, sizeof(buf), "date", info)) {
{
stream_pos = parse_date(buf, 1); stream_pos = parse_date(buf, 1);
if (stream_pos == INT64_MIN) if (stream_pos == INT64_MIN)
return -1; return -1;
} } else
else
stream_pos = 0; stream_pos = 0;
} }
if (input_filename[0] == '\0') if (input_filename[0] == '\0')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment