Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
5b70fb8f
Commit
5b70fb8f
authored
9 years ago
by
Michael Niedermayer
Committed by
Martin Storsjö
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
movenc-test: Fix integer overflows
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
fdd5c48e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libavformat/movenc-test.c
+4
-4
4 additions, 4 deletions
libavformat/movenc-test.c
tests/ref/fate/movenc
+1
-1
1 addition, 1 deletion
tests/ref/fate/movenc
with
5 additions
and
5 deletions
libavformat/movenc-test.c
+
4
−
4
View file @
5b70fb8f
...
...
@@ -60,8 +60,8 @@ AVStream *video_st, *audio_st;
int64_t
audio_dts
,
video_dts
;
int
bframes
;
int
duration
;
int
audio_duration
;
int
64_t
duration
;
int
64_t
audio_duration
;
int
frames
;
int
gop_size
;
int64_t
next_p_pts
;
...
...
@@ -196,9 +196,9 @@ static void init_fps(int bf, int audio_preroll, int fps)
frames
=
0
;
gop_size
=
30
;
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
)
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
;
video_dts
=
bframes
?
-
duration
:
0
;
...
...
This diff is collapsed.
Click to expand it.
tests/ref/fate/movenc
+
1
−
1
View file @
5b70fb8f
4e7e78793cdda3c9ed28fbf47df39c43 2449 non-empty-moov
5b825dc829f35c9d5b76834c378276d7 2897 non-empty-moov-elst
0fd659671dec7d05cfa533a4579b1d6d 2817 non-empty-moov-no-elst
8
90ad73874bff5aefbd549bc75a15b8e 9139
ismv
8
45fdc9226a0e3f14e5f92219ce8f570 3871
ismv
aa6f42a0546a27f7047f1cff812a552f 2327 empty-moov
9a439649d13cdcddf6179234fe3d8a8e 2727 empty-moov-no-elst
2451cb44e678845ed26e014e1affe5e8 2559 empty-moov-no-elst-no-adjust
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment