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
62142663
Commit
62142663
authored
Aug 27, 2008
by
elupus
Committed by
Michael Niedermayer
Sep 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cosmetic reindent of mpegts_get_pcr
parent
0a90b6a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
mpegts.c
libavformat/mpegts.c
+11
-11
No files found.
libavformat/mpegts.c
View file @
62142663
...
...
@@ -1719,18 +1719,18 @@ static int64_t mpegts_get_pcr(AVFormatContext *s, int stream_index,
uint8_t
buf
[
TS_PACKET_SIZE
];
int
pcr_l
,
pcr_pid
=
((
PESContext
*
)
s
->
streams
[
stream_index
]
->
priv_data
)
->
pcr_pid
;
pos
=
((
*
ppos
+
ts
->
raw_packet_size
-
1
-
ts
->
pos47
)
/
ts
->
raw_packet_size
)
*
ts
->
raw_packet_size
+
ts
->
pos47
;
while
(
pos
<
pos_limit
)
{
if
(
avio_seek
(
s
->
pb
,
pos
,
SEEK_SET
)
<
0
)
return
AV_NOPTS_VALUE
;
if
(
avio_read
(
s
->
pb
,
buf
,
TS_PACKET_SIZE
)
!=
TS_PACKET_SIZE
)
return
AV_NOPTS_VALUE
;
if
((
pcr_pid
<
0
||
(
AV_RB16
(
buf
+
1
)
&
0x1fff
)
==
pcr_pid
)
&&
parse_pcr
(
&
timestamp
,
&
pcr_l
,
buf
)
==
0
)
{
*
ppos
=
pos
;
return
timestamp
;
}
pos
+=
ts
->
raw_packet_size
;
while
(
pos
<
pos_limit
)
{
if
(
avio_seek
(
s
->
pb
,
pos
,
SEEK_SET
)
<
0
)
return
AV_NOPTS_VALUE
;
if
(
avio_read
(
s
->
pb
,
buf
,
TS_PACKET_SIZE
)
!=
TS_PACKET_SIZE
)
return
AV_NOPTS_VALUE
;
if
((
pcr_pid
<
0
||
(
AV_RB16
(
buf
+
1
)
&
0x1fff
)
==
pcr_pid
)
&&
parse_pcr
(
&
timestamp
,
&
pcr_l
,
buf
)
==
0
)
{
*
ppos
=
pos
;
return
timestamp
;
}
pos
+=
ts
->
raw_packet_size
;
}
return
AV_NOPTS_VALUE
;
}
...
...
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