diff options
author | Reynaldo H. Verdejo Pinochet <r.verdejo@sisa.samsung.com> | 2014-02-13 04:10:11 -0300 |
---|---|---|
committer | Reynaldo H. Verdejo Pinochet <r.verdejo@sisa.samsung.com> | 2014-02-14 14:31:41 -0300 |
commit | 35e525b73263f7b8f2bd5efae4d89446d87c4a1c (patch) | |
tree | 2b53316dc3323cacde88a34a9bb8c51c65283f04 | |
parent | ba6186d6eb316029f0ab3ced89072dfab2282bf7 (diff) | |
download | ffmpeg-35e525b73263f7b8f2bd5efae4d89446d87c4a1c.tar.gz |
ffserver: fix some comments
Signed-off-by: Reynaldo H. Verdejo Pinochet <r.verdejo@sisa.samsung.com>
-rw-r--r-- | ffserver.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/ffserver.c b/ffserver.c index f6fb082406..692db429a6 100644 --- a/ffserver.c +++ b/ffserver.c @@ -2224,8 +2224,8 @@ static int open_input_stream(HTTPContext *c, const char *info) return ret; } - /* choose stream as clock source (we favorize video stream if - present) for packet sending */ + /* choose stream as clock source (we favor the video stream if + * present) for packet sending */ c->pts_stream_index = 0; for(i=0;i<c->stream->nb_streams;i++) { if (c->pts_stream_index == 0 && @@ -2292,8 +2292,8 @@ static int http_prepare_data(HTTPContext *c) *(c->fmt_ctx.streams[i]) = *src; c->fmt_ctx.streams[i]->priv_data = 0; - c->fmt_ctx.streams[i]->codec->frame_number = 0; /* XXX: should be done in - AVStream, not in codec */ + /* XXX: should be done in AVStream, not in codec */ + c->fmt_ctx.streams[i]->codec->frame_number = 0; } /* set output format parameters */ c->fmt_ctx.oformat = c->stream->fmt; @@ -2311,7 +2311,7 @@ static int http_prepare_data(HTTPContext *c) /* * HACK to avoid mpeg ps muxer to spit many underflow errors * Default value from FFmpeg - * Try to set it use configuration option + * Try to set it using configuration option */ c->fmt_ctx.max_delay = (int)(0.7*AV_TIME_BASE); @@ -2362,7 +2362,7 @@ static int http_prepare_data(HTTPContext *c) goto redo; } else { no_loop: - /* must send trailer now because eof or error */ + /* must send trailer now because EOF or error */ c->state = HTTPSTATE_SEND_DATA_TRAILER; } } @@ -2404,8 +2404,8 @@ static int http_prepare_data(HTTPContext *c) send_it: ist = c->fmt_in->streams[source_index]; /* specific handling for RTP: we use several - output stream (one for each RTP - connection). XXX: need more abstract handling */ + * output streams (one for each RTP connection). + * XXX: need more abstract handling */ if (c->is_packetized) { /* compute send time and duration */ c->cur_pts = av_rescale_q(pkt.dts, ist->time_base, AV_TIME_BASE_Q); @@ -2495,7 +2495,7 @@ static int http_prepare_data(HTTPContext *c) /* should convert the format at the same time */ /* send data starting at c->buffer_ptr to the output connection - (either UDP or TCP connection) */ + * (either UDP or TCP) */ static int http_send_data(HTTPContext *c) { int len, ret; @@ -3551,7 +3551,7 @@ static AVStream *add_av_stream1(FFStream *stream, AVCodecContext *codec, int cop } } else { /* live streams must use the actual feed's codec since it may be - * updated later to carry extradata needed by the streams. + * updated later to carry extradata needed by them. */ fst->codec = codec; } |