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
a5142443
Commit
a5142443
authored
Jul 05, 2019
by
Steven Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/dashdec: fix code style in dash_read_packet
parent
9269bccb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
15 deletions
+16
-15
dashdec.c
libavformat/dashdec.c
+16
-15
No files found.
libavformat/dashdec.c
View file @
a5142443
...
...
@@ -2181,37 +2181,38 @@ static int dash_read_packet(AVFormatContext *s, AVPacket *pkt)
int
ret
=
0
,
i
;
int64_t
mints
=
0
;
struct
representation
*
cur
=
NULL
;
struct
representation
*
rep
=
NULL
;
recheck_discard_flags
(
s
,
c
->
videos
,
c
->
n_videos
);
recheck_discard_flags
(
s
,
c
->
audios
,
c
->
n_audios
);
recheck_discard_flags
(
s
,
c
->
subtitles
,
c
->
n_subtitles
);
for
(
i
=
0
;
i
<
c
->
n_videos
;
i
++
)
{
struct
representation
*
pls
=
c
->
videos
[
i
];
if
(
!
pls
->
ctx
)
rep
=
c
->
videos
[
i
];
if
(
!
rep
->
ctx
)
continue
;
if
(
!
cur
||
pls
->
cur_timestamp
<
mints
)
{
cur
=
pls
;
mints
=
pls
->
cur_timestamp
;
if
(
!
cur
||
rep
->
cur_timestamp
<
mints
)
{
cur
=
rep
;
mints
=
rep
->
cur_timestamp
;
}
}
for
(
i
=
0
;
i
<
c
->
n_audios
;
i
++
)
{
struct
representation
*
pls
=
c
->
audios
[
i
];
if
(
!
pls
->
ctx
)
rep
=
c
->
audios
[
i
];
if
(
!
rep
->
ctx
)
continue
;
if
(
!
cur
||
pls
->
cur_timestamp
<
mints
)
{
cur
=
pls
;
mints
=
pls
->
cur_timestamp
;
if
(
!
cur
||
rep
->
cur_timestamp
<
mints
)
{
cur
=
rep
;
mints
=
rep
->
cur_timestamp
;
}
}
for
(
i
=
0
;
i
<
c
->
n_subtitles
;
i
++
)
{
struct
representation
*
pls
=
c
->
subtitles
[
i
];
if
(
!
pls
->
ctx
)
rep
=
c
->
subtitles
[
i
];
if
(
!
rep
->
ctx
)
continue
;
if
(
!
cur
||
pls
->
cur_timestamp
<
mints
)
{
cur
=
pls
;
mints
=
pls
->
cur_timestamp
;
if
(
!
cur
||
rep
->
cur_timestamp
<
mints
)
{
cur
=
rep
;
mints
=
rep
->
cur_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