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
594b1fcb
Commit
594b1fcb
authored
Sep 29, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mov: add av_dlog() to dump edit lists.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
3ceeb01c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
mov.c
libavformat/mov.c
+6
-2
No files found.
libavformat/mov.c
View file @
594b1fcb
...
...
@@ -2637,9 +2637,11 @@ static int mov_read_elst(MOVContext *c, AVIOContext *pb, MOVAtom atom)
if
((
uint64_t
)
edit_count
*
12
+
8
>
atom
.
size
)
return
AVERROR_INVALIDDATA
;
av_dlog
(
c
->
fc
,
"track[%i].edit_count = %i
\n
"
,
c
->
fc
->
nb_streams
-
1
,
edit_count
);
for
(
i
=
0
;
i
<
edit_count
;
i
++
){
int64_t
time
;
int64_t
duration
;
int
rate
;
if
(
version
==
1
)
{
duration
=
avio_rb64
(
pb
);
time
=
avio_rb64
(
pb
);
...
...
@@ -2647,7 +2649,7 @@ static int mov_read_elst(MOVContext *c, AVIOContext *pb, MOVAtom atom)
duration
=
avio_rb32
(
pb
);
/* segment duration */
time
=
(
int32_t
)
avio_rb32
(
pb
);
/* media time */
}
avio_rb32
(
pb
);
/* Media rate */
rate
=
avio_rb32
(
pb
);
if
(
i
==
0
&&
time
==
-
1
)
{
sc
->
empty_duration
=
duration
;
edit_start_index
=
1
;
...
...
@@ -2655,13 +2657,15 @@ static int mov_read_elst(MOVContext *c, AVIOContext *pb, MOVAtom atom)
sc
->
start_time
=
time
;
else
unsupported
=
1
;
av_dlog
(
c
->
fc
,
"duration=%"
PRId64
" time=%"
PRId64
" rate=%f
\n
"
,
duration
,
time
,
rate
/
65536
.
0
);
}
if
(
unsupported
)
av_log
(
c
->
fc
,
AV_LOG_WARNING
,
"multiple edit list entries, "
"a/v desync might occur, patch welcome
\n
"
);
av_dlog
(
c
->
fc
,
"track[%i].edit_count = %i
\n
"
,
c
->
fc
->
nb_streams
-
1
,
edit_count
);
return
0
;
}
...
...
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