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
1c0d8f25
Commit
1c0d8f25
authored
Apr 03, 2013
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a work-around for msvc compilation until c99-to-c89 issue 7 is fixed.
Tested-by: Nevcairiel
parent
f51ce34e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
ffmpeg.c
ffmpeg.c
+4
-2
No files found.
ffmpeg.c
View file @
1c0d8f25
...
...
@@ -1884,8 +1884,10 @@ static int output_packet(InputStream *ist, const AVPacket *pkt)
break
;
case
AVMEDIA_TYPE_VIDEO
:
if
(
ist
->
framerate
.
num
)
{
int64_t
next_dts
=
av_rescale_q
(
ist
->
next_dts
,
AV_TIME_BASE_Q
,
av_inv_q
(
ist
->
framerate
));
ist
->
next_dts
=
av_rescale_q
(
next_dts
+
1
,
av_inv_q
(
ist
->
framerate
),
AV_TIME_BASE_Q
);
// TODO: Remove work-around for c99-to-c89 issue 7
AVRational
time_base_q
=
AV_TIME_BASE_Q
;
int64_t
next_dts
=
av_rescale_q
(
ist
->
next_dts
,
time_base_q
,
av_inv_q
(
ist
->
framerate
));
ist
->
next_dts
=
av_rescale_q
(
next_dts
+
1
,
av_inv_q
(
ist
->
framerate
),
time_base_q
);
}
else
if
(
pkt
->
duration
)
{
ist
->
next_dts
+=
av_rescale_q
(
pkt
->
duration
,
ist
->
st
->
time_base
,
AV_TIME_BASE_Q
);
}
else
if
(
ist
->
st
->
codec
->
time_base
.
num
!=
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