Skip to content

Commit 808a9e7

Browse files
author
Clement Champetier
committed
ProcessStat: fix build with libav
Missing include for log function.
1 parent 9d475b8 commit 808a9e7

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/AvTranscoder/transcoder/ProcessStat.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
#include "ProcessStat.hpp"
22

33
#include <utility>
4+
#include <math.h>
45

56
namespace avtranscoder
67
{
78

9+
double VideoStat::psnr( const double d )
10+
{
11+
return -10.0 * log(d) / log(10.0);
12+
}
13+
814
void ProcessStat::addVideoStat( const size_t streamIndex, const VideoStat& videoStat )
915
{
1016
_videoStats.insert( std::make_pair( streamIndex, videoStat ) );

src/AvTranscoder/transcoder/ProcessStat.hpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@ class VideoStat
2222
{}
2323

2424
public:
25-
static double psnr( double d )
26-
{
27-
return -10.0 * log(d) / log(10.0);
28-
}
25+
static double psnr( const double d );
2926

3027
public:
3128
double _duration;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy