aboutsummaryrefslogtreecommitdiff
path: root/ffserver.c
diff options
context:
space:
mode:
authorReynaldo H. Verdejo Pinochet2015-03-08 14:11:35 -0300
committerReynaldo H. Verdejo Pinochet2015-03-08 18:24:56 -0300
commit923a24456972567ff6f7f0534a25f33d056a6fbc (patch)
treed0df25524152323564a1356211efd5c44926c3e9 /ffserver.c
parent10fd7ff814f2a35b5b49a9c3b0d426ead6c7e83f (diff)
ffserver: break some too long lines
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Diffstat (limited to 'ffserver.c')
-rw-r--r--ffserver.c27
1 files changed, 18 insertions, 9 deletions
diff --git a/ffserver.c b/ffserver.c
index 4c34cc9da0..29e7bd9728 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -2055,7 +2055,8 @@ static int open_input_stream(HTTPContext *c, const char *info)
ret = avformat_open_input(&s, input_filename, c->stream->ifmt,
&c->stream->in_opts);
if (ret < 0) {
- http_log("Could not open input '%s': %s\n", input_filename, av_err2str(ret));
+ http_log("Could not open input '%s': %s\n",
+ input_filename, av_err2str(ret));
return ret;
}
@@ -2125,7 +2126,8 @@ static int http_prepare_data(HTTPContext *c)
c->fmt_ctx = *ctx;
av_freep(&ctx);
av_dict_copy(&(c->fmt_ctx.metadata), c->stream->metadata, 0);
- c->fmt_ctx.streams = av_mallocz_array(c->stream->nb_streams, sizeof(AVStream *));
+ c->fmt_ctx.streams = av_mallocz_array(c->stream->nb_streams,
+ sizeof(AVStream *));
for(i=0;i<c->stream->nb_streams;i++) {
AVStream *src;
@@ -2280,7 +2282,8 @@ static int http_prepare_data(HTTPContext *c)
max_packet_size = RTSP_TCP_MAX_PACKET_SIZE;
else
max_packet_size = c->rtp_handles[c->packet_stream_index]->max_packet_size;
- ret = ffio_open_dyn_packet_buf(&ctx->pb, max_packet_size);
+ ret = ffio_open_dyn_packet_buf(&ctx->pb,
+ max_packet_size);
} else {
ret = avio_open_dyn_buf(&ctx->pb);
}
@@ -2292,10 +2295,13 @@ static int http_prepare_data(HTTPContext *c)
ctx->pb->seekable = 0;
if (pkt.dts != AV_NOPTS_VALUE)
- pkt.dts = av_rescale_q(pkt.dts, ist->time_base, ost->time_base);
+ pkt.dts = av_rescale_q(pkt.dts, ist->time_base,
+ ost->time_base);
if (pkt.pts != AV_NOPTS_VALUE)
- pkt.pts = av_rescale_q(pkt.pts, ist->time_base, ost->time_base);
- pkt.duration = av_rescale_q(pkt.duration, ist->time_base, ost->time_base);
+ pkt.pts = av_rescale_q(pkt.pts, ist->time_base,
+ ost->time_base);
+ pkt.duration = av_rescale_q(pkt.duration, ist->time_base,
+ ost->time_base);
if ((ret = av_write_frame(ctx, &pkt)) < 0) {
http_log("Error writing frame to output for stream '%s': %s\n",
c->stream->filename, av_err2str(ret));
@@ -2437,7 +2443,8 @@ static int http_send_data(HTTPContext *c)
ffurl_write(c->rtp_handles[c->packet_stream_index],
c->buffer_ptr, len);
c->buffer_ptr += len;
- /* here we continue as we can send several packets per 10 ms slot */
+ /* here we continue as we can send several packets
+ * per 10 ms slot */
}
} else {
/* TCP data output */
@@ -2894,7 +2901,8 @@ static void rtsp_cmd_describe(HTTPContext *c, const char *url)
/* get the host IP */
len = sizeof(my_addr);
getsockname(c->fd, (struct sockaddr *)&my_addr, &len);
- content_length = prepare_sdp_description(stream, &content, my_addr.sin_addr);
+ content_length = prepare_sdp_description(stream, &content,
+ my_addr.sin_addr);
if (content_length < 0) {
rtsp_reply_error(c, RTSP_STATUS_INTERNAL);
return;
@@ -3550,7 +3558,8 @@ static void build_feed_streams(void)
} else {
/* we handle a stream coming from a feed */
for(i=0;i<stream->nb_streams;i++)
- stream->feed_streams[i] = add_av_stream(feed, stream->streams[i]);
+ stream->feed_streams[i] = add_av_stream(feed,
+ stream->streams[i]);
}
}
}