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
16abd687
Commit
16abd687
authored
Dec 11, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
seektest: floatfree
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
616eaea8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
seek-test.c
libavformat/seek-test.c
+2
-3
lavf_wtv
tests/ref/seek/lavf_wtv
+1
-1
No files found.
libavformat/seek-test.c
View file @
16abd687
...
...
@@ -48,13 +48,12 @@ static const char *ret_str(int v)
static
void
ts_str
(
char
buffer
[
60
],
int64_t
ts
,
AVRational
base
)
{
double
tsval
;
if
(
ts
==
AV_NOPTS_VALUE
)
{
strcpy
(
buffer
,
" NOPTS "
);
return
;
}
ts
val
=
ts
*
av_q2d
(
base
);
snprintf
(
buffer
,
60
,
"%
9f"
,
tsval
);
ts
=
av_rescale_q
(
ts
,
base
,
(
AVRational
){
1
,
1000000
}
);
snprintf
(
buffer
,
60
,
"%
c%Ld.%06Ld"
,
ts
<
0
?
'-'
:
' '
,
FFABS
(
ts
)
/
1000000
,
FFABS
(
ts
)
%
1000000
);
}
int
main
(
int
argc
,
char
**
argv
)
...
...
tests/ref/seek/lavf_wtv
View file @
16abd687
...
...
@@ -3,7 +3,7 @@ ret: 0 st:-1 flags:0 ts:-1.000000
ret: 0 st: 0 flags:1 dts: NOPTS pts: 0.000000 pos: 2144 size: 24801
ret:-1 st:-1 flags:1 ts: 1.894167
ret: 0 st: 0 flags:0 ts: 0.788334
ret: 0 st: 1 flags:1 dts: 0.78367
3 pts: 0.783673
pos: 321176 size: 209
ret: 0 st: 1 flags:1 dts: 0.78367
4 pts: 0.783674
pos: 321176 size: 209
ret: 0 st: 0 flags:1 ts:-0.317499
ret: 0 st: 0 flags:1 dts: NOPTS pts: 0.000000 pos: 2144 size: 24801
ret:-1 st: 1 flags:0 ts: 2.576668
...
...
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