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
f8facaaf
Commit
f8facaaf
authored
Jul 14, 2004
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
play more broken files
Originally committed as revision 3308 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
ffdd57d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
avidec.c
libavformat/avidec.c
+3
-2
No files found.
libavformat/avidec.c
View file @
f8facaaf
...
...
@@ -120,7 +120,8 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
#endif
if
(
tag1
==
MKTAG
(
'm'
,
'o'
,
'v'
,
'i'
))
{
avi
->
movi_list
=
url_ftell
(
pb
)
-
4
;
avi
->
movi_end
=
avi
->
movi_list
+
size
;
if
(
size
)
avi
->
movi_end
=
avi
->
movi_list
+
size
;
else
avi
->
movi_end
=
url_filesize
(
url_fileno
(
pb
));
#ifdef DEBUG
printf
(
"movi end=%Lx
\n
"
,
avi
->
movi_end
);
#endif
...
...
@@ -443,7 +444,7 @@ static int avi_read_packet(AVFormatContext *s, AVPacket *pkt)
// pkt->dts += ast->start;
if
(
ast
->
sample_size
)
pkt
->
dts
/=
ast
->
sample_size
;
//av_log(NULL, AV_LOG_DEBUG, "dts:%Ld offset:%d %d/%d
%d st:%d size:%d\n", pkt->dts, ast->frame_offset, ast->scale, ast->rat
e, AV_TIME_BASE, n, size);
//av_log(NULL, AV_LOG_DEBUG, "dts:%Ld offset:%d %d/%d
smpl_siz:%d base:%d st:%d size:%d\n", pkt->dts, ast->frame_offset, ast->scale, ast->rate, ast->sample_siz
e, AV_TIME_BASE, n, size);
pkt
->
stream_index
=
n
;
/* FIXME: We really should read index for that */
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