Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
b264453d
Commit
b264453d
authored
Oct 30, 2013
by
Martin Storsjö
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtpenc: Remove some superfluous parentheses
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
d07b51bf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
rtpenc.c
libavformat/rtpenc.c
+2
-2
No files found.
libavformat/rtpenc.c
View file @
b264453d
...
@@ -269,7 +269,7 @@ static void rtcp_send_sr(AVFormatContext *s1, int64_t ntp_time)
...
@@ -269,7 +269,7 @@ static void rtcp_send_sr(AVFormatContext *s1, int64_t ntp_time)
s
->
last_rtcp_ntp_time
=
ntp_time
;
s
->
last_rtcp_ntp_time
=
ntp_time
;
rtp_ts
=
av_rescale_q
(
ntp_time
-
s
->
first_rtcp_ntp_time
,
(
AVRational
){
1
,
1000000
},
rtp_ts
=
av_rescale_q
(
ntp_time
-
s
->
first_rtcp_ntp_time
,
(
AVRational
){
1
,
1000000
},
s1
->
streams
[
0
]
->
time_base
)
+
s
->
base_timestamp
;
s1
->
streams
[
0
]
->
time_base
)
+
s
->
base_timestamp
;
avio_w8
(
s1
->
pb
,
(
RTP_VERSION
<<
6
)
);
avio_w8
(
s1
->
pb
,
RTP_VERSION
<<
6
);
avio_w8
(
s1
->
pb
,
RTCP_SR
);
avio_w8
(
s1
->
pb
,
RTCP_SR
);
avio_wb16
(
s1
->
pb
,
6
);
/* length in words - 1 */
avio_wb16
(
s1
->
pb
,
6
);
/* length in words - 1 */
avio_wb32
(
s1
->
pb
,
s
->
ssrc
);
avio_wb32
(
s1
->
pb
,
s
->
ssrc
);
...
@@ -305,7 +305,7 @@ void ff_rtp_send_data(AVFormatContext *s1, const uint8_t *buf1, int len, int m)
...
@@ -305,7 +305,7 @@ void ff_rtp_send_data(AVFormatContext *s1, const uint8_t *buf1, int len, int m)
av_dlog
(
s1
,
"rtp_send_data size=%d
\n
"
,
len
);
av_dlog
(
s1
,
"rtp_send_data size=%d
\n
"
,
len
);
/* build the RTP header */
/* build the RTP header */
avio_w8
(
s1
->
pb
,
(
RTP_VERSION
<<
6
)
);
avio_w8
(
s1
->
pb
,
RTP_VERSION
<<
6
);
avio_w8
(
s1
->
pb
,
(
s
->
payload_type
&
0x7f
)
|
((
m
&
0x01
)
<<
7
));
avio_w8
(
s1
->
pb
,
(
s
->
payload_type
&
0x7f
)
|
((
m
&
0x01
)
<<
7
));
avio_wb16
(
s1
->
pb
,
s
->
seq
);
avio_wb16
(
s1
->
pb
,
s
->
seq
);
avio_wb32
(
s1
->
pb
,
s
->
timestamp
);
avio_wb32
(
s1
->
pb
,
s
->
timestamp
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment