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
e26df9eb
Commit
e26df9eb
authored
Nov 19, 2009
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use AVFormatContext in dprintf
Originally committed as revision 20554 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
8447f0bd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
mov.c
libavformat/mov.c
+5
-5
No files found.
libavformat/mov.c
View file @
e26df9eb
...
@@ -2251,18 +2251,18 @@ static int mov_read_packet(AVFormatContext *s, AVPacket *pkt)
...
@@ -2251,18 +2251,18 @@ static int mov_read_packet(AVFormatContext *s, AVPacket *pkt)
return
0
;
return
0
;
}
}
static
int
mov_seek_stream
(
AVStream
*
st
,
int64_t
timestamp
,
int
flags
)
static
int
mov_seek_stream
(
AV
FormatContext
*
s
,
AV
Stream
*
st
,
int64_t
timestamp
,
int
flags
)
{
{
MOVStreamContext
*
sc
=
st
->
priv_data
;
MOVStreamContext
*
sc
=
st
->
priv_data
;
int
sample
,
time_sample
;
int
sample
,
time_sample
;
int
i
;
int
i
;
sample
=
av_index_search_timestamp
(
st
,
timestamp
,
flags
);
sample
=
av_index_search_timestamp
(
st
,
timestamp
,
flags
);
dprintf
(
s
t
->
codec
,
"stream %d, timestamp %"
PRId64
", sample %d
\n
"
,
st
->
index
,
timestamp
,
sample
);
dprintf
(
s
,
"stream %d, timestamp %"
PRId64
", sample %d
\n
"
,
st
->
index
,
timestamp
,
sample
);
if
(
sample
<
0
)
/* not sure what to do */
if
(
sample
<
0
)
/* not sure what to do */
return
-
1
;
return
-
1
;
sc
->
current_sample
=
sample
;
sc
->
current_sample
=
sample
;
dprintf
(
s
t
->
codec
,
"stream %d, found sample %d
\n
"
,
st
->
index
,
sc
->
current_sample
);
dprintf
(
s
,
"stream %d, found sample %d
\n
"
,
st
->
index
,
sc
->
current_sample
);
/* adjust ctts index */
/* adjust ctts index */
if
(
sc
->
ctts_data
)
{
if
(
sc
->
ctts_data
)
{
time_sample
=
0
;
time_sample
=
0
;
...
@@ -2292,7 +2292,7 @@ static int mov_read_seek(AVFormatContext *s, int stream_index, int64_t sample_ti
...
@@ -2292,7 +2292,7 @@ static int mov_read_seek(AVFormatContext *s, int stream_index, int64_t sample_ti
sample_time
=
0
;
sample_time
=
0
;
st
=
s
->
streams
[
stream_index
];
st
=
s
->
streams
[
stream_index
];
sample
=
mov_seek_stream
(
st
,
sample_time
,
flags
);
sample
=
mov_seek_stream
(
s
,
s
t
,
sample_time
,
flags
);
if
(
sample
<
0
)
if
(
sample
<
0
)
return
-
1
;
return
-
1
;
...
@@ -2305,7 +2305,7 @@ static int mov_read_seek(AVFormatContext *s, int stream_index, int64_t sample_ti
...
@@ -2305,7 +2305,7 @@ static int mov_read_seek(AVFormatContext *s, int stream_index, int64_t sample_ti
continue
;
continue
;
timestamp
=
av_rescale_q
(
seek_timestamp
,
s
->
streams
[
stream_index
]
->
time_base
,
st
->
time_base
);
timestamp
=
av_rescale_q
(
seek_timestamp
,
s
->
streams
[
stream_index
]
->
time_base
,
st
->
time_base
);
mov_seek_stream
(
st
,
timestamp
,
flags
);
mov_seek_stream
(
s
,
s
t
,
timestamp
,
flags
);
}
}
return
0
;
return
0
;
}
}
...
...
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