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
78a11456
Commit
78a11456
authored
Mar 25, 2006
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing timebase
Originally committed as revision 5218 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
76fabb45
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
matroska.c
libavformat/matroska.c
+5
-5
No files found.
libavformat/matroska.c
View file @
78a11456
...
...
@@ -2206,7 +2206,7 @@ matroska_read_header (AVFormatContext *s,
st
=
av_new_stream
(
s
,
track
->
stream_index
);
if
(
st
==
NULL
)
return
AVERROR_NOMEM
;
av_set_pts_info
(
st
,
24
,
1
,
1000
);
/* 24 bit pts in m
s */
av_set_pts_info
(
st
,
64
,
matroska
->
time_scale
,
1000
*
1000
*
1000
);
/* 64 bit pts in n
s */
st
->
codec
->
codec_id
=
codec_id
;
...
...
@@ -2295,7 +2295,7 @@ matroska_parse_blockgroup (MatroskaDemuxContext *matroska,
case
MATROSKA_ID_BLOCK
:
{
uint8_t
*
data
,
*
origdata
;
int
size
;
uint64
_t
block_time
;
int16
_t
block_time
;
uint32_t
*
lace_size
=
NULL
;
int
n
,
track
,
flags
,
laces
=
0
;
uint64_t
num
;
...
...
@@ -2329,7 +2329,7 @@ matroska_parse_blockgroup (MatroskaDemuxContext *matroska,
}
/* block_time (relative to cluster time) */
block_time
=
(
(
data
[
0
]
<<
8
)
|
data
[
1
])
*
matroska
->
time_scale
;
block_time
=
(
data
[
0
]
<<
8
)
|
data
[
1
]
;
data
+=
2
;
size
-=
2
;
flags
=
*
data
;
...
...
@@ -2440,7 +2440,7 @@ matroska_parse_blockgroup (MatroskaDemuxContext *matroska,
pkt
->
stream_index
=
matroska
->
tracks
[
track
]
->
stream_index
;
pkt
->
pts
=
timecode
/
1000000
;
/* ns to ms */
pkt
->
pts
=
timecode
;
pkt
->
pos
=
pos
;
matroska_queue_packet
(
matroska
,
pkt
);
...
...
@@ -2514,7 +2514,7 @@ matroska_parse_cluster (MatroskaDemuxContext *matroska)
uint64_t
num
;
if
((
res
=
ebml_read_uint
(
matroska
,
&
id
,
&
num
))
<
0
)
break
;
cluster_time
=
num
*
matroska
->
time_scale
;
cluster_time
=
num
;
break
;
}
...
...
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