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
8223bca5
Commit
8223bca5
authored
Mar 01, 2006
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
10l forgot to set packet_size
Originally committed as revision 5086 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
1894edeb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
avidec.c
libavformat/avidec.c
+5
-2
No files found.
libavformat/avidec.c
View file @
8223bca5
...
...
@@ -34,7 +34,7 @@ typedef struct AVIStream {
int
scale
;
int
rate
;
int
sample_size
;
/*
audio only data
*/
int
sample_size
;
/*
size of one sample (or packet) (in the rate/scale sense) in bytes
*/
int
start
;
int64_t
cum_len
;
/* temporary storage (used during seek) */
...
...
@@ -474,8 +474,11 @@ static int avi_read_packet(AVFormatContext *s, AVPacket *pkt)
url_fseek
(
&
s
->
pb
,
pos
+
8
,
SEEK_SET
);
// av_log(NULL, AV_LOG_DEBUG, "pos=%Ld\n", pos);
assert
(
best_ast
->
remaining
<=
best_ast
->
packet_size
);
avi
->
stream_index
=
best_stream_index
;
if
(
!
best_ast
->
remaining
)
best_ast
->
packet_size
=
best_ast
->
remaining
=
best_st
->
index_entries
[
i
].
size
;
}
}
...
...
@@ -509,7 +512,7 @@ resync:
// 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 smpl_siz:%d base:%d st:%d size:%d\n", pkt->dts, ast->frame_offset, ast->scale, ast->rate, ast->sample_size, AV_TIME_BASE, n
, size);
//av_log(NULL, AV_LOG_DEBUG, "dts:%Ld offset:%
Ld %d/%d smpl_siz:%d base:%d st:%d size:%d\n", pkt->dts, ast->frame_offset, ast->scale, ast->rate, ast->sample_size, AV_TIME_BASE, avi->stream_index
, size);
pkt
->
stream_index
=
avi
->
stream_index
;
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