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
0a61ba58
Commit
0a61ba58
authored
Jan 10, 2004
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
audio pts fix
Originally committed as revision 2689 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
e6c0297f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
avidec.c
libavformat/avidec.c
+5
-1
No files found.
libavformat/avidec.c
View file @
0a61ba58
...
@@ -419,7 +419,11 @@ static int avi_read_packet(AVFormatContext *s, AVPacket *pkt)
...
@@ -419,7 +419,11 @@ static int avi_read_packet(AVFormatContext *s, AVPacket *pkt)
ast
=
st
->
priv_data
;
ast
=
st
->
priv_data
;
/* XXX: how to handle B frames in avi ? */
/* XXX: how to handle B frames in avi ? */
pkt
->
pts
=
((
int64_t
)
ast
->
frame_offset
*
ast
->
scale
*
AV_TIME_BASE
)
/
ast
->
rate
;
if
(
st
->
codec
.
codec_type
==
CODEC_TYPE_VIDEO
)
pkt
->
pts
=
((
int64_t
)
ast
->
frame_offset
*
ast
->
scale
*
AV_TIME_BASE
)
/
ast
->
rate
;
else
//FIXME this is proably not correct for all weird avis
pkt
->
pts
=
((
int64_t
)
ast
->
frame_offset
*
ast
->
scale
*
AV_TIME_BASE
)
/
(
ast
->
rate
*
st
->
codec
.
block_align
);
//printf("%Ld %d %d %d %d\n", pkt->pts, ast->frame_offset, ast->scale, AV_TIME_BASE, ast->rate);
pkt
->
stream_index
=
n
;
pkt
->
stream_index
=
n
;
/* FIXME: We really should read index for that */
/* FIXME: We really should read index for that */
if
(
st
->
codec
.
codec_type
==
CODEC_TYPE_VIDEO
)
{
if
(
st
->
codec
.
codec_type
==
CODEC_TYPE_VIDEO
)
{
...
...
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