Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
a392f82a
F
Ffmpeg
项目概览
小白菜888
/
Ffmpeg
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
Ffmpeg
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a392f82a
编写于
9月 29, 2009
作者:
D
Diego Biurrun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove disabled code cruft.
Originally committed as revision 20087 to
svn://svn.ffmpeg.org/ffmpeg/trunk
上级
0e829974
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
0 addition
and
52 deletion
+0
-52
ffserver.c
ffserver.c
+0
-52
未找到文件。
ffserver.c
浏览文件 @
a392f82a
...
...
@@ -1882,36 +1882,6 @@ static void compute_status(HTTPContext *c)
stream
=
stream
->
next
;
}
#if 0
{
float avg;
AVCodecContext *enc;
char buf[1024];
/* feed status */
stream = first_feed;
while (stream != NULL) {
url_fprintf(pb, "<h1>Feed '%s'</h1>\n", stream->filename);
url_fprintf(pb, "<table>\n");
url_fprintf(pb, "<tr><td>Parameters<td>Frame count<td>Size<td>Avg bitrate (kbits/s)\n");
for(i=0;i<stream->nb_streams;i++) {
AVStream *st = stream->streams[i];
FeedData *fdata = st->priv_data;
enc = st->codec;
avcodec_string(buf, sizeof(buf), enc);
avg = fdata->avg_frame_size * (float)enc->rate * 8.0;
if (enc->codec->type == CODEC_TYPE_AUDIO && enc->frame_size > 0)
avg /= enc->frame_size;
url_fprintf(pb, "<tr><td>%s <td> %d <td> %"PRId64" <td> %0.1f\n",
buf, enc->frame_number, fdata->data_count, avg / 1000.0);
}
url_fprintf(pb, "</table>\n");
stream = stream->next_feed;
}
}
#endif
/* connection status */
url_fprintf
(
pb
,
"<h2>Connection Status</h2>
\n
"
);
...
...
@@ -2021,12 +1991,6 @@ static int open_input_stream(HTTPContext *c, const char *info)
if
(
input_filename
[
0
]
==
'\0'
)
return
-
1
;
#if 0
{ time_t when = stream_pos / 1000000;
http_log("Stream pos = %"PRId64", time=%s", stream_pos, ctime(&when));
}
#endif
/* open stream */
if
((
ret
=
av_open_input_file
(
&
s
,
input_filename
,
c
->
stream
->
ifmt
,
buf_size
,
c
->
stream
->
ap_in
))
<
0
)
{
...
...
@@ -2234,14 +2198,6 @@ static int http_prepare_data(HTTPContext *c)
if
(
ist
->
start_time
!=
AV_NOPTS_VALUE
)
c
->
cur_pts
-=
av_rescale_q
(
ist
->
start_time
,
ist
->
time_base
,
AV_TIME_BASE_Q
);
c
->
cur_frame_duration
=
av_rescale_q
(
pkt
.
duration
,
ist
->
time_base
,
AV_TIME_BASE_Q
);
#if 0
printf("index=%d pts=%0.3f duration=%0.6f\n",
pkt.stream_index,
(double)c->cur_pts /
AV_TIME_BASE,
(double)c->cur_frame_duration /
AV_TIME_BASE);
#endif
/* find RTP context */
c
->
packet_stream_index
=
pkt
.
stream_index
;
ctx
=
c
->
rtp_ctx
[
c
->
packet_stream_index
];
...
...
@@ -3072,14 +3028,6 @@ static void rtsp_cmd_play(HTTPContext *c, const char *url, RTSPMessageHeader *h)
return
;
}
#if 0
/* XXX: seek in stream */
if (h->range_start != AV_NOPTS_VALUE) {
printf("range_start=%0.3f\n", (double)h->range_start / AV_TIME_BASE);
av_seek_frame(rtp_c->fmt_in, -1, h->range_start);
}
#endif
rtp_c
->
state
=
HTTPSTATE_SEND_DATA
;
/* now everything is OK, so we can send the connection parameters */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录