Skip to content

Commit 955da92

Browse files
committed
Merge pull request #43 from cchampet/fix_FormatContext_export_windows
Fix exports windows
2 parents 2464b4a + 4f5486f commit 955da92

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

src/AvTranscoder/Option.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ typedef std::map<std::string, Option> OptionMap; ///< Key: option name / value:
123123
* @param av_class: a libav context (could be an AVFormatContext or an AVCodecContext).
124124
* @param req_flags: libav flag (AV_OPT_FLAG_XXX), which is a filter for AVOption loaded by the Context (default = 0: no flag restriction).
125125
*/
126-
void loadOptions( OptionMap& outOptions, void* av_class, int req_flags = 0 );
127-
void loadOptions( OptionArray& outOptions, void* av_class, int req_flags = 0 );
126+
void AvExport loadOptions( OptionMap& outOptions, void* av_class, int req_flags = 0 );
127+
void AvExport loadOptions( OptionArray& outOptions, void* av_class, int req_flags = 0 );
128128

129129
}
130130

src/AvTranscoder/file/FormatContext.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#ifndef _AV_TRANSCODER_FORMAT_CONTEXT_HPP_
22
#define _AV_TRANSCODER_FORMAT_CONTEXT_HPP_
33

4+
#include <AvTranscoder/common.hpp>
45
#include <AvTranscoder/Option.hpp>
56

67
extern "C" {
@@ -13,7 +14,7 @@ namespace avtranscoder
1314
/**
1415
* @brief Wrapper of an AVFormatContext.
1516
*/
16-
class FormatContext
17+
class AvExport FormatContext
1718
{
1819
public:
1920
FormatContext( const std::string& filename, int req_flags = 0 ); ///< Allocate an AVFormatContext by opening an input file

src/AvTranscoder/stream/IInputStream.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
namespace avtranscoder
1010
{
1111

12-
class IInputStream
12+
class AvExport IInputStream
1313
{
1414
public:
1515
virtual ~IInputStream() {};

src/AvTranscoder/stream/IOutputStream.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
namespace avtranscoder
99
{
1010

11-
class IOutputStream
11+
class AvExport IOutputStream
1212
{
1313
public:
1414

0 commit comments

Comments
 (0)