Skip to content

Commit 06ebd3f

Browse files
committed
minor build fixes
1 parent 8f83509 commit 06ebd3f

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/AvTranscoder/Option.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
extern "C" {
44
#include <libavutil/error.h>
5+
#include <libavutil/mem.h>
56
}
67

78
#include <iostream>

src/AvTranscoder/codec/AudioCodec.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include "AudioCodec.hpp"
22

3+
#include <cmath>
34
#include <cassert>
45

56
namespace avtranscoder
@@ -25,7 +26,7 @@ AudioFrameDesc AudioCodec::getAudioFrameDesc() const
2526
assert( _avCodecContext != NULL );
2627
AudioFrameDesc audioFrameDesc( _avCodecContext->sample_rate, _avCodecContext->channels, _avCodecContext->sample_fmt );
2728
double fps = 1.0 * _avCodecContext->time_base.den / ( _avCodecContext->time_base.num * _avCodecContext->ticks_per_frame );
28-
if( ! isinf( fps ) )
29+
if( ! std::isinf( fps ) )
2930
audioFrameDesc.setFps( fps );
3031
return audioFrameDesc;
3132
}

src/AvTranscoder/codec/VideoCodec.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include "VideoCodec.hpp"
22

3+
#include <cmath>
34
#include <cassert>
45

56
namespace avtranscoder
@@ -25,7 +26,7 @@ VideoFrameDesc VideoCodec::getVideoFrameDesc() const
2526
assert( _avCodecContext != NULL );
2627
VideoFrameDesc videoFrameDesc( _avCodecContext->width, _avCodecContext->height, _avCodecContext->pix_fmt );
2728
double fps = 1.0 * _avCodecContext->time_base.den / ( _avCodecContext->time_base.num * _avCodecContext->ticks_per_frame );
28-
if( ! isinf( fps ) )
29+
if( ! std::isinf( fps ) )
2930
videoFrameDesc.setFps( fps );
3031
return videoFrameDesc;
3132
}

0 commit comments

Comments
 (0)