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
7ef94d22
Commit
7ef94d22
authored
May 23, 2008
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
in flv this field is dts finally
Originally committed as revision 13268 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
19719bc6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
flvdec.c
libavformat/flvdec.c
+6
-6
No files found.
libavformat/flvdec.c
View file @
7ef94d22
...
...
@@ -281,7 +281,7 @@ static int flv_read_header(AVFormatContext *s,
static
int
flv_read_packet
(
AVFormatContext
*
s
,
AVPacket
*
pkt
)
{
int
ret
,
i
,
type
,
size
,
flags
,
is_audio
,
next
,
pos
;
unsigned
p
ts
;
unsigned
d
ts
;
AVStream
*
st
=
NULL
;
for
(;;){
...
...
@@ -289,9 +289,9 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
url_fskip
(
s
->
pb
,
4
);
/* size of previous packet */
type
=
get_byte
(
s
->
pb
);
size
=
get_be24
(
s
->
pb
);
p
ts
=
get_be24
(
s
->
pb
);
p
ts
|=
get_byte
(
s
->
pb
)
<<
24
;
// av_log(s, AV_LOG_DEBUG, "type:%d, size:%d,
pts:%d\n", type, size, p
ts);
d
ts
=
get_be24
(
s
->
pb
);
d
ts
|=
get_byte
(
s
->
pb
)
<<
24
;
// av_log(s, AV_LOG_DEBUG, "type:%d, size:%d,
dts:%d\n", type, size, d
ts);
if
(
url_feof
(
s
->
pb
))
return
AVERROR
(
EIO
);
url_fskip
(
s
->
pb
,
3
);
/* stream id, always 0 */
...
...
@@ -337,7 +337,7 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
continue
;
}
if
((
flags
&
FLV_VIDEO_FRAMETYPE_MASK
)
==
FLV_FRAME_KEY
)
av_add_index_entry
(
st
,
pos
,
p
ts
,
size
,
0
,
AVINDEX_KEYFRAME
);
av_add_index_entry
(
st
,
pos
,
d
ts
,
size
,
0
,
AVINDEX_KEYFRAME
);
break
;
}
...
...
@@ -376,7 +376,7 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
/* note: we need to modify the packet size here to handle the last
packet */
pkt
->
size
=
ret
;
pkt
->
pts
=
p
ts
;
pkt
->
dts
=
d
ts
;
pkt
->
stream_index
=
st
->
index
;
if
(
is_audio
||
((
flags
&
FLV_VIDEO_FRAMETYPE_MASK
)
==
FLV_FRAME_KEY
))
...
...
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