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
f32554fa
Commit
f32554fa
authored
Nov 14, 2006
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
indention
Originally committed as revision 7058 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
071790c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
21 deletions
+21
-21
nutdec.c
libavformat/nutdec.c
+21
-21
No files found.
libavformat/nutdec.c
View file @
f32554fa
...
...
@@ -844,27 +844,27 @@ static int read_seek(AVFormatContext *s, int stream_index, int64_t pts, int flag
pos2
=
st
->
index_entries
[
index
].
pos
;
ts
=
st
->
index_entries
[
index
].
timestamp
;
}
else
{
av_tree_find
(
nut
->
syncpoints
,
&
dummy
,
sp_pts_cmp
,
next_node
);
av_log
(
s
,
AV_LOG_DEBUG
,
"%Ld-%Ld %Ld-%Ld
\n
"
,
next_node
[
0
]
->
pos
,
next_node
[
1
]
->
pos
,
next_node
[
0
]
->
ts
,
next_node
[
1
]
->
ts
);
pos
=
av_gen_search
(
s
,
-
1
,
dummy
.
ts
,
next_node
[
0
]
->
pos
,
next_node
[
1
]
->
pos
,
next_node
[
1
]
->
pos
,
next_node
[
0
]
->
ts
,
next_node
[
1
]
->
ts
,
AVSEEK_FLAG_BACKWARD
,
&
ts
,
nut_read_timestamp
);
if
(
!
(
flags
&
AVSEEK_FLAG_BACKWARD
)){
dummy
.
pos
=
pos
+
16
;
next_node
[
1
]
=
&
nopts_sp
;
av_tree_find
(
nut
->
syncpoints
,
&
dummy
,
sp_pos_cmp
,
next_node
);
pos2
=
av_gen_search
(
s
,
-
2
,
dummy
.
pos
,
next_node
[
0
]
->
pos
,
next_node
[
1
]
->
pos
,
next_node
[
1
]
->
pos
,
next_node
[
0
]
->
back_ptr
,
next_node
[
1
]
->
back_ptr
,
flags
,
&
ts
,
nut_read_timestamp
);
if
(
pos2
>=
0
)
pos
=
pos2
;
//FIXME dir but i think it doesnt matter
}
dummy
.
pos
=
pos
;
sp
=
av_tree_find
(
nut
->
syncpoints
,
&
dummy
,
sp_pos_cmp
,
NULL
);
assert
(
sp
);
pos2
=
sp
->
back_ptr
-
15
;
av_tree_find
(
nut
->
syncpoints
,
&
dummy
,
sp_pts_cmp
,
next_node
);
av_log
(
s
,
AV_LOG_DEBUG
,
"%Ld-%Ld %Ld-%Ld
\n
"
,
next_node
[
0
]
->
pos
,
next_node
[
1
]
->
pos
,
next_node
[
0
]
->
ts
,
next_node
[
1
]
->
ts
);
pos
=
av_gen_search
(
s
,
-
1
,
dummy
.
ts
,
next_node
[
0
]
->
pos
,
next_node
[
1
]
->
pos
,
next_node
[
1
]
->
pos
,
next_node
[
0
]
->
ts
,
next_node
[
1
]
->
ts
,
AVSEEK_FLAG_BACKWARD
,
&
ts
,
nut_read_timestamp
);
if
(
!
(
flags
&
AVSEEK_FLAG_BACKWARD
)){
dummy
.
pos
=
pos
+
16
;
next_node
[
1
]
=
&
nopts_sp
;
av_tree_find
(
nut
->
syncpoints
,
&
dummy
,
sp_pos_cmp
,
next_node
);
pos2
=
av_gen_search
(
s
,
-
2
,
dummy
.
pos
,
next_node
[
0
]
->
pos
,
next_node
[
1
]
->
pos
,
next_node
[
1
]
->
pos
,
next_node
[
0
]
->
back_ptr
,
next_node
[
1
]
->
back_ptr
,
flags
,
&
ts
,
nut_read_timestamp
);
if
(
pos2
>=
0
)
pos
=
pos2
;
//FIXME dir but i think it doesnt matter
}
dummy
.
pos
=
pos
;
sp
=
av_tree_find
(
nut
->
syncpoints
,
&
dummy
,
sp_pos_cmp
,
NULL
);
assert
(
sp
);
pos2
=
sp
->
back_ptr
-
15
;
}
av_log
(
NULL
,
AV_LOG_DEBUG
,
"SEEKTO: %"
PRId64
"
\n
"
,
pos2
);
pos
=
find_startcode
(
&
s
->
pb
,
SYNCPOINT_STARTCODE
,
pos2
);
...
...
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