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
428b4aac
Commit
428b4aac
authored
Aug 22, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/mov: improve timecode calculation
Fixes timecode calculation for NTSC frame rates. Fixes ticket #5978.
parent
d063f137
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
mov.c
libavformat/mov.c
+2
-2
copy-trac236
tests/ref/fate/copy-trac236
+1
-1
No files found.
libavformat/mov.c
View file @
428b4aac
...
...
@@ -2304,8 +2304,8 @@ static int mov_parse_stsd_data(MOVContext *c, AVIOContext *pb,
int
val
;
val
=
AV_RB32
(
st
->
codecpar
->
extradata
+
4
);
tmcd_ctx
->
tmcd_flags
=
val
;
st
->
avg_frame_rate
.
num
=
st
->
codecpar
->
extradata
[
16
];
/* number of fram
e */
st
->
avg_frame_rate
.
den
=
1
;
st
->
avg_frame_rate
.
num
=
AV_RB32
(
st
->
codecpar
->
extradata
+
8
);
/* timescal
e */
st
->
avg_frame_rate
.
den
=
AV_RB32
(
st
->
codecpar
->
extradata
+
12
);
/* frameDuration */
#if FF_API_LAVF_AVCTX
FF_DISABLE_DEPRECATION_WARNINGS
st
->
codec
->
time_base
=
av_inv_q
(
st
->
avg_frame_rate
);
...
...
tests/ref/fate/copy-trac236
View file @
428b4aac
9
59a4d78c6c11936e361fc3101a013e
b *tests/data/fate/copy-trac236.mov
9
84a33c6292e3d35e2cfdfbf66d8e82
b *tests/data/fate/copy-trac236.mov
630860 tests/data/fate/copy-trac236.mov
#tb 0: 100/2997
#media_type 0: video
...
...
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