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
559a55ad
Commit
559a55ad
authored
Feb 10, 2007
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use dvr-ms timestamps
Originally committed as revision 7905 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
6ff9b422
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
asf.c
libavformat/asf.c
+15
-1
asf.h
libavformat/asf.h
+1
-1
No files found.
libavformat/asf.c
View file @
559a55ad
...
...
@@ -600,6 +600,7 @@ static int asf_read_frame_header(AVFormatContext *s){
ByteIOContext
*
pb
=
&
s
->
pb
;
int
rsize
=
1
;
int
num
=
get_byte
(
pb
);
int64_t
ts0
,
ts1
;
asf
->
packet_segments
--
;
asf
->
packet_key_frame
=
num
>>
7
;
...
...
@@ -616,7 +617,20 @@ static int asf_read_frame_header(AVFormatContext *s){
return
-
1
;
}
asf
->
packet_frag_timestamp
=
get_le32
(
pb
);
// timestamp
url_fskip
(
pb
,
asf
->
packet_replic_size
-
8
);
if
(
asf
->
packet_replic_size
>=
8
+
38
+
4
){
// for(i=0; i<asf->packet_replic_size-8; i++)
// av_log(s, AV_LOG_DEBUG, "%02X ",get_byte(pb));
// av_log(s, AV_LOG_DEBUG, "\n");
url_fskip
(
pb
,
10
);
ts0
=
get_le64
(
pb
);
ts1
=
get_le64
(
pb
);
url_fskip
(
pb
,
12
);
get_le32
(
pb
);
url_fskip
(
pb
,
asf
->
packet_replic_size
-
8
-
38
-
4
);
if
(
ts0
!=
-
1
)
asf
->
packet_frag_timestamp
=
ts0
/
10000
;
else
asf
->
packet_frag_timestamp
=
AV_NOPTS_VALUE
;
}
else
url_fskip
(
pb
,
asf
->
packet_replic_size
-
8
);
rsize
+=
asf
->
packet_replic_size
;
// FIXME - check validity
}
else
if
(
asf
->
packet_replic_size
==
1
){
// multipacket - frag_offset is begining timestamp
...
...
libavformat/asf.h
View file @
559a55ad
...
...
@@ -107,7 +107,7 @@ typedef struct {
int
packet_padsize
;
unsigned
int
packet_frag_offset
;
unsigned
int
packet_frag_size
;
int
packet_frag_timestamp
;
int
64_t
packet_frag_timestamp
;
int
packet_multi_size
;
int
packet_obj_size
;
int
packet_time_delta
;
...
...
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