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
b8a1b880
Commit
b8a1b880
authored
Nov 09, 2011
by
John Brooks
Committed by
Martin Storsjö
Nov 11, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtpdec: Simplify finalize_packet
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
b911518d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
rtpdec.c
libavformat/rtpdec.c
+5
-3
No files found.
libavformat/rtpdec.c
View file @
b8a1b880
...
...
@@ -421,7 +421,10 @@ static void finalize_packet(RTPDemuxContext *s, AVPacket *pkt, uint32_t timestam
{
if
(
pkt
->
pts
!=
AV_NOPTS_VALUE
||
pkt
->
dts
!=
AV_NOPTS_VALUE
)
return
;
/* Timestamp already set by depacketizer */
if
(
s
->
last_rtcp_ntp_time
!=
AV_NOPTS_VALUE
&&
timestamp
!=
RTP_NOTS_VALUE
)
{
if
(
timestamp
==
RTP_NOTS_VALUE
)
return
;
if
(
s
->
last_rtcp_ntp_time
!=
AV_NOPTS_VALUE
)
{
int64_t
addend
;
int
delta_timestamp
;
...
...
@@ -433,8 +436,7 @@ static void finalize_packet(RTPDemuxContext *s, AVPacket *pkt, uint32_t timestam
delta_timestamp
;
return
;
}
if
(
timestamp
==
RTP_NOTS_VALUE
)
return
;
if
(
!
s
->
base_timestamp
)
s
->
base_timestamp
=
timestamp
;
pkt
->
pts
=
s
->
range_start_offset
+
timestamp
-
s
->
base_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