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
7d56f2ff
Commit
7d56f2ff
authored
Jan 08, 2014
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mxf: Handle negative edit_rate
Default to 1/25.
parent
04ffd220
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
mxfdec.c
libavformat/mxfdec.c
+9
-0
No files found.
libavformat/mxfdec.c
View file @
7d56f2ff
...
...
@@ -1422,6 +1422,15 @@ static int mxf_parse_structural_metadata(MXFContext *mxf)
if
(
st
->
duration
==
-
1
)
st
->
duration
=
AV_NOPTS_VALUE
;
st
->
start_time
=
component
->
start_position
;
if
(
material_track
->
edit_rate
.
num
<=
0
||
material_track
->
edit_rate
.
den
<=
0
)
{
av_log
(
mxf
->
fc
,
AV_LOG_WARNING
,
"Invalid edit rate (%d/%d) found on stream #%d, "
"defaulting to 25/1
\n
"
,
material_track
->
edit_rate
.
num
,
material_track
->
edit_rate
.
den
,
st
->
index
);
material_track
->
edit_rate
=
(
AVRational
){
25
,
1
};
}
avpriv_set_pts_info
(
st
,
64
,
material_track
->
edit_rate
.
den
,
material_track
->
edit_rate
.
num
);
PRINT_KEY
(
mxf
->
fc
,
"data definition ul"
,
source_track
->
sequence
->
data_definition_ul
);
...
...
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