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
31de45d2
Commit
31de45d2
authored
Nov 24, 2017
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/utils: fix mixed declarations and code
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
4186a77f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
utils.c
libavformat/utils.c
+1
-1
No files found.
libavformat/utils.c
View file @
31de45d2
...
...
@@ -1734,10 +1734,10 @@ int av_read_frame(AVFormatContext *s, AVPacket *pkt)
if
(
next_pkt
->
dts
!=
AV_NOPTS_VALUE
)
{
int
wrap_bits
=
s
->
streams
[
next_pkt
->
stream_index
]
->
pts_wrap_bits
;
av_assert2
(
wrap_bits
<=
64
);
// last dts seen for this stream. if any of packets following
// current one had no dts, we will set this to AV_NOPTS_VALUE.
int64_t
last_dts
=
next_pkt
->
dts
;
av_assert2
(
wrap_bits
<=
64
);
while
(
pktl
&&
next_pkt
->
pts
==
AV_NOPTS_VALUE
)
{
if
(
pktl
->
pkt
.
stream_index
==
next_pkt
->
stream_index
&&
av_compare_mod
(
next_pkt
->
dts
,
pktl
->
pkt
.
dts
,
2ULL
<<
(
wrap_bits
-
1
))
<
0
)
{
...
...
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