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
fba7815d
Commit
fba7815d
authored
Jul 02, 2008
by
Luca Abeni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reindent after last commit
Originally committed as revision 14046 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
d6b9e57a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
rtpdec.c
libavformat/rtpdec.c
+10
-10
No files found.
libavformat/rtpdec.c
View file @
fba7815d
...
...
@@ -365,16 +365,16 @@ static int rtp_parse_mp4_au(RTPDemuxContext *s, const uint8_t *buf)
*/
static
void
finalize_packet
(
RTPDemuxContext
*
s
,
AVPacket
*
pkt
,
uint32_t
timestamp
)
{
if
(
s
->
last_rtcp_ntp_time
!=
AV_NOPTS_VALUE
)
{
int64_t
addend
;
int
delta_timestamp
;
/* compute pts from timestamp with received ntp_time */
delta_timestamp
=
timestamp
-
s
->
last_rtcp_timestamp
;
/* convert to the PTS timebase */
addend
=
av_rescale
(
s
->
last_rtcp_ntp_time
-
s
->
first_rtcp_ntp_time
,
s
->
st
->
time_base
.
den
,
(
uint64_t
)
s
->
st
->
time_base
.
num
<<
32
);
pkt
->
pts
=
addend
+
delta_timestamp
;
}
if
(
s
->
last_rtcp_ntp_time
!=
AV_NOPTS_VALUE
)
{
int64_t
addend
;
int
delta_timestamp
;
/* compute pts from timestamp with received ntp_time */
delta_timestamp
=
timestamp
-
s
->
last_rtcp_timestamp
;
/* convert to the PTS timebase */
addend
=
av_rescale
(
s
->
last_rtcp_ntp_time
-
s
->
first_rtcp_ntp_time
,
s
->
st
->
time_base
.
den
,
(
uint64_t
)
s
->
st
->
time_base
.
num
<<
32
);
pkt
->
pts
=
addend
+
delta_timestamp
;
}
pkt
->
stream_index
=
s
->
st
->
index
;
}
...
...
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