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
c14f8a52
Commit
c14f8a52
authored
Jan 01, 2013
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/mov: fix timecode track reference usage.
parent
8d398f40
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
mov.c
libavformat/mov.c
+7
-3
No files found.
libavformat/mov.c
View file @
c14f8a52
...
...
@@ -3128,7 +3128,7 @@ static int mov_read_header(AVFormatContext *s)
{
MOVContext
*
mov
=
s
->
priv_data
;
AVIOContext
*
pb
=
s
->
pb
;
int
i
,
err
;
int
i
,
j
,
err
;
MOVAtom
atom
=
{
AV_RL32
(
"root"
)
};
mov
->
fc
=
s
;
...
...
@@ -3165,9 +3165,13 @@ static int mov_read_header(AVFormatContext *s)
MOVStreamContext
*
sc
=
st
->
priv_data
;
if
(
sc
->
timecode_track
>
0
)
{
AVDictionaryEntry
*
tcr
;
int
tmcd_st_id
=
sc
->
timecode_track
-
1
;
int
tmcd_st_id
=
-
1
;
if
(
tmcd_st_id
<
0
||
tmcd_st_id
>=
s
->
nb_streams
)
for
(
j
=
0
;
j
<
s
->
nb_streams
;
j
++
)
if
(
s
->
streams
[
j
]
->
id
==
sc
->
timecode_track
)
tmcd_st_id
=
j
;
if
(
tmcd_st_id
<
0
)
continue
;
tcr
=
av_dict_get
(
s
->
streams
[
tmcd_st_id
]
->
metadata
,
"timecode"
,
NULL
,
0
);
if
(
tcr
)
...
...
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