Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
31de45d2
Commit
31de45d2
authored
Nov 24, 2017
by
James Almer
1
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
Show 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
)
{
...
...
zhaoyunfei
@zhaoyunfei
mentioned in commit
0d4a11d0
·
May 18, 2020
mentioned in commit
0d4a11d0
mentioned in commit 0d4a11d0a9474c78fbc846fe9bc707be35426c71
Toggle commit list
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