Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
e8420626
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,发现更多精彩内容 >>
提交
e8420626
编写于
7月 13, 2008
作者:
M
Måns Rullgård
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
RTP: use dprintf(), allow compilation with -DDEBUG
Originally committed as revision 14211 to
svn://svn.ffmpeg.org/ffmpeg/trunk
上级
f94981ea
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
5 addition
and
15 deletion
+5
-15
libavformat/rtpdec.c
libavformat/rtpdec.c
+2
-6
libavformat/rtpenc.c
libavformat/rtpenc.c
+3
-9
未找到文件。
libavformat/rtpdec.c
浏览文件 @
e8420626
...
@@ -250,13 +250,9 @@ int rtp_check_and_send_back_rr(RTPDemuxContext *s, int count)
...
@@ -250,13 +250,9 @@ int rtp_check_and_send_back_rr(RTPDemuxContext *s, int count)
len
=
url_close_dyn_buf
(
pb
,
&
buf
);
len
=
url_close_dyn_buf
(
pb
,
&
buf
);
if
((
len
>
0
)
&&
buf
)
{
if
((
len
>
0
)
&&
buf
)
{
int
result
;
int
result
;
#if defined(DEBUG)
dprintf
(
s
->
ic
,
"sending %d bytes of RR
\n
"
,
len
);
printf
(
"sending %d bytes of RR
\n
"
,
len
);
#endif
result
=
url_write
(
s
->
rtp_ctx
,
buf
,
len
);
result
=
url_write
(
s
->
rtp_ctx
,
buf
,
len
);
#if defined(DEBUG)
dprintf
(
s
->
ic
,
"result from url_write: %d
\n
"
,
result
);
printf
(
"result from url_write: %d
\n
"
,
result
);
#endif
av_free
(
buf
);
av_free
(
buf
);
}
}
return
0
;
return
0
;
...
...
libavformat/rtpenc.c
浏览文件 @
e8420626
...
@@ -120,9 +120,7 @@ static void rtcp_send_sr(AVFormatContext *s1, int64_t ntp_time)
...
@@ -120,9 +120,7 @@ static void rtcp_send_sr(AVFormatContext *s1, int64_t ntp_time)
RTPDemuxContext
*
s
=
s1
->
priv_data
;
RTPDemuxContext
*
s
=
s1
->
priv_data
;
uint32_t
rtp_ts
;
uint32_t
rtp_ts
;
#if defined(DEBUG)
dprintf
(
s1
,
"RTCP: %02x %"
PRIx64
" %x
\n
"
,
s
->
payload_type
,
ntp_time
,
s
->
timestamp
);
printf
(
"RTCP: %02x %"
PRIx64
" %x
\n
"
,
s
->
payload_type
,
ntp_time
,
s
->
timestamp
);
#endif
if
(
s
->
first_rtcp_ntp_time
==
AV_NOPTS_VALUE
)
s
->
first_rtcp_ntp_time
=
ntp_time
;
if
(
s
->
first_rtcp_ntp_time
==
AV_NOPTS_VALUE
)
s
->
first_rtcp_ntp_time
=
ntp_time
;
s
->
last_rtcp_ntp_time
=
ntp_time
;
s
->
last_rtcp_ntp_time
=
ntp_time
;
...
@@ -146,9 +144,7 @@ void ff_rtp_send_data(AVFormatContext *s1, const uint8_t *buf1, int len, int m)
...
@@ -146,9 +144,7 @@ void ff_rtp_send_data(AVFormatContext *s1, const uint8_t *buf1, int len, int m)
{
{
RTPDemuxContext
*
s
=
s1
->
priv_data
;
RTPDemuxContext
*
s
=
s1
->
priv_data
;
#ifdef DEBUG
dprintf
(
s1
,
"rtp_send_data size=%d
\n
"
,
len
);
printf
(
"rtp_send_data size=%d
\n
"
,
len
);
#endif
/* build the RTP header */
/* build the RTP header */
put_byte
(
s1
->
pb
,
(
RTP_VERSION
<<
6
));
put_byte
(
s1
->
pb
,
(
RTP_VERSION
<<
6
));
...
@@ -301,9 +297,7 @@ static int rtp_write_packet(AVFormatContext *s1, AVPacket *pkt)
...
@@ -301,9 +297,7 @@ static int rtp_write_packet(AVFormatContext *s1, AVPacket *pkt)
int
size
=
pkt
->
size
;
int
size
=
pkt
->
size
;
uint8_t
*
buf1
=
pkt
->
data
;
uint8_t
*
buf1
=
pkt
->
data
;
#ifdef DEBUG
dprintf
(
s1
,
"%d: write len=%d
\n
"
,
pkt
->
stream_index
,
size
);
printf
(
"%d: write len=%d
\n
"
,
pkt
->
stream_index
,
size
);
#endif
rtcp_bytes
=
((
s
->
octet_count
-
s
->
last_octet_count
)
*
RTCP_TX_RATIO_NUM
)
/
rtcp_bytes
=
((
s
->
octet_count
-
s
->
last_octet_count
)
*
RTCP_TX_RATIO_NUM
)
/
RTCP_TX_RATIO_DEN
;
RTCP_TX_RATIO_DEN
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录