Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
7a3df014
Commit
7a3df014
authored
Mar 30, 2012
by
maxlazarov
Committed by
Michael Niedermayer
Apr 01, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The lt and lte functions were swapped.
parent
8df774be
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
eval.c
libavutil/eval.c
+2
-2
eval
tests/ref/fate/eval
+3
-3
No files found.
libavutil/eval.c
View file @
7a3df014
...
...
@@ -378,8 +378,8 @@ static int parse_primary(AVExpr **e, Parser *p)
else
if
(
strmatch
(
next
,
"eq"
))
d
->
type
=
e_eq
;
else
if
(
strmatch
(
next
,
"gte"
))
d
->
type
=
e_gte
;
else
if
(
strmatch
(
next
,
"gt"
))
d
->
type
=
e_gt
;
else
if
(
strmatch
(
next
,
"lte"
))
{
AVExpr
*
tmp
=
d
->
param
[
1
];
d
->
param
[
1
]
=
d
->
param
[
0
];
d
->
param
[
0
]
=
tmp
;
d
->
type
=
e_gt
;
}
else
if
(
strmatch
(
next
,
"lt"
))
{
AVExpr
*
tmp
=
d
->
param
[
1
];
d
->
param
[
1
]
=
d
->
param
[
0
];
d
->
param
[
0
]
=
tmp
;
d
->
type
=
e_gt
e
;
}
else
if
(
strmatch
(
next
,
"lte"
))
{
AVExpr
*
tmp
=
d
->
param
[
1
];
d
->
param
[
1
]
=
d
->
param
[
0
];
d
->
param
[
0
]
=
tmp
;
d
->
type
=
e_gt
e
;
}
else
if
(
strmatch
(
next
,
"lt"
))
{
AVExpr
*
tmp
=
d
->
param
[
1
];
d
->
param
[
1
]
=
d
->
param
[
0
];
d
->
param
[
0
]
=
tmp
;
d
->
type
=
e_gt
;
}
else
if
(
strmatch
(
next
,
"ld"
))
d
->
type
=
e_ld
;
else
if
(
strmatch
(
next
,
"isnan"
))
d
->
type
=
e_isnan
;
else
if
(
strmatch
(
next
,
"st"
))
d
->
type
=
e_st
;
...
...
tests/ref/fate/eval
View file @
7a3df014
...
...
@@ -95,16 +95,16 @@ Evaluating 'st(1, 123); ld(1)'
'st(1, 123); ld(1)' -> 123.000000
Evaluating 'st(0, 1); while(lte(ld(0), 100), st(1, ld(1)+ld(0));st(0, ld(0)+1)); ld(1)'
'st(0, 1); while(lte(ld(0), 100), st(1, ld(1)+ld(0));st(0, ld(0)+1)); ld(1)' ->
49
50.000000
'st(0, 1); while(lte(ld(0), 100), st(1, ld(1)+ld(0));st(0, ld(0)+1)); ld(1)' ->
50
50.000000
Evaluating 'st(1, 1); st(2, 2); st(0, 1); while(lte(ld(0),10), st(3, ld(1)+ld(2)); st(1, ld(2)); st(2, ld(3)); st(0, ld(0)+1)); ld(3)'
'st(1, 1); st(2, 2); st(0, 1); while(lte(ld(0),10), st(3, ld(1)+ld(2)); st(1, ld(2)); st(2, ld(3)); st(0, ld(0)+1)); ld(3)' ->
144
.000000
'st(1, 1); st(2, 2); st(0, 1); while(lte(ld(0),10), st(3, ld(1)+ld(2)); st(1, ld(2)); st(2, ld(3)); st(0, ld(0)+1)); ld(3)' ->
233
.000000
Evaluating 'while(0, 10)'
'while(0, 10)' -> nan
Evaluating 'st(0, 1); while(lte(ld(0),100), st(1, ld(1)+ld(0)); st(0, ld(0)+1))'
'st(0, 1); while(lte(ld(0),100), st(1, ld(1)+ld(0)); st(0, ld(0)+1))' -> 10
0
.000000
'st(0, 1); while(lte(ld(0),100), st(1, ld(1)+ld(0)); st(0, ld(0)+1))' -> 10
1
.000000
Evaluating 'isnan(1)'
'isnan(1)' -> 0.000000
...
...
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