Skip to content

Commit f8044f8

Browse files
authored
Merge pull request #289 from cchampet/build_fixMSVCWarnings
CMake: fix msvc warnings at compile time
2 parents 2d92597 + 35f78c8 commit f8044f8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/AvTranscoder/Option.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class AvExport Option
7979
void setRatio(const int num, const int den);
8080

8181
// array of childs
82-
bool hasChild() const { return _childOptions.size(); }
82+
bool hasChild() const { return ! _childOptions.empty(); }
8383
const std::vector<Option>& getChilds() const { return _childOptions; }
8484
const Option& getChildAtIndex(const size_t index) const { return _childOptions.at(index); }
8585
int getDefaultChildIndex() const { return _defaultChildIndex; }

src/AvTranscoder/transform/AudioTransform.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#define ResampleContext SwrContext
1212
#endif
1313

14-
class ResampleContext;
14+
struct ResampleContext;
1515

1616
namespace avtranscoder
1717
{

src/AvTranscoder/transform/VideoTransform.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
#include <AvTranscoder/data/decoded/VideoFrame.hpp>
77

8-
class SwsContext;
8+
struct SwsContext;
99

1010
namespace avtranscoder
1111
{

0 commit comments

Comments
 (0)