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
5b70fb8f
Commit
5b70fb8f
authored
Nov 23, 2015
by
Michael Niedermayer
Committed by
Martin Storsjö
Nov 24, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
movenc-test: Fix integer overflows
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
fdd5c48e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
movenc-test.c
libavformat/movenc-test.c
+4
-4
movenc
tests/ref/fate/movenc
+1
-1
No files found.
libavformat/movenc-test.c
View file @
5b70fb8f
...
@@ -60,8 +60,8 @@ AVStream *video_st, *audio_st;
...
@@ -60,8 +60,8 @@ AVStream *video_st, *audio_st;
int64_t
audio_dts
,
video_dts
;
int64_t
audio_dts
,
video_dts
;
int
bframes
;
int
bframes
;
int
duration
;
int
64_t
duration
;
int
audio_duration
;
int
64_t
audio_duration
;
int
frames
;
int
frames
;
int
gop_size
;
int
gop_size
;
int64_t
next_p_pts
;
int64_t
next_p_pts
;
...
@@ -196,9 +196,9 @@ static void init_fps(int bf, int audio_preroll, int fps)
...
@@ -196,9 +196,9 @@ static void init_fps(int bf, int audio_preroll, int fps)
frames
=
0
;
frames
=
0
;
gop_size
=
30
;
gop_size
=
30
;
duration
=
video_st
->
time_base
.
den
/
fps
;
duration
=
video_st
->
time_base
.
den
/
fps
;
audio_duration
=
1024
*
audio_st
->
time_base
.
den
/
audio_st
->
codec
->
sample_rate
;
audio_duration
=
1024
LL
*
audio_st
->
time_base
.
den
/
audio_st
->
codec
->
sample_rate
;
if
(
audio_preroll
)
if
(
audio_preroll
)
audio_preroll
=
2048
*
audio_st
->
time_base
.
den
/
audio_st
->
codec
->
sample_rate
;
audio_preroll
=
2048
LL
*
audio_st
->
time_base
.
den
/
audio_st
->
codec
->
sample_rate
;
bframes
=
bf
;
bframes
=
bf
;
video_dts
=
bframes
?
-
duration
:
0
;
video_dts
=
bframes
?
-
duration
:
0
;
...
...
tests/ref/fate/movenc
View file @
5b70fb8f
4e7e78793cdda3c9ed28fbf47df39c43 2449 non-empty-moov
4e7e78793cdda3c9ed28fbf47df39c43 2449 non-empty-moov
5b825dc829f35c9d5b76834c378276d7 2897 non-empty-moov-elst
5b825dc829f35c9d5b76834c378276d7 2897 non-empty-moov-elst
0fd659671dec7d05cfa533a4579b1d6d 2817 non-empty-moov-no-elst
0fd659671dec7d05cfa533a4579b1d6d 2817 non-empty-moov-no-elst
8
90ad73874bff5aefbd549bc75a15b8e 9139
ismv
8
45fdc9226a0e3f14e5f92219ce8f570 3871
ismv
aa6f42a0546a27f7047f1cff812a552f 2327 empty-moov
aa6f42a0546a27f7047f1cff812a552f 2327 empty-moov
9a439649d13cdcddf6179234fe3d8a8e 2727 empty-moov-no-elst
9a439649d13cdcddf6179234fe3d8a8e 2727 empty-moov-no-elst
2451cb44e678845ed26e014e1affe5e8 2559 empty-moov-no-elst-no-adjust
2451cb44e678845ed26e014e1affe5e8 2559 empty-moov-no-elst-no-adjust
...
...
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