Skip to content

Commit d022f2c

Browse files
author
Clement Champetier
committed
properties: fixed check of float values when print them
1 parent c908e9b commit d022f2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AvTranscoder/properties/util.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ template <>
2727
void add(PropertyVector& propertyVector, const std::string& key, const float& value)
2828
{
2929
std::stringstream ss;
30-
if(value <= AV_NOPTS_VALUE || value >= AV_NOPTS_VALUE)
30+
if(value <= AV_NOPTS_VALUE || value >= -(float)AV_NOPTS_VALUE)
3131
ss << "N/A";
3232
else
3333
ss << value;

0 commit comments

Comments
 (0)