File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -27,11 +27,11 @@ OutputFile::OutputFile( const std::string& file )
27
27
, filename ( file )
28
28
, packetCount ( 0 )
29
29
{
30
- av_register_all (); // Warning: should be called only once
31
30
}
32
31
33
32
bool OutputFile::setup ()
34
33
{
34
+ av_register_all ();
35
35
outputFormat = av_guess_format ( NULL , filename.c_str (), NULL );
36
36
37
37
if ( !outputFormat )
Original file line number Diff line number Diff line change @@ -23,12 +23,12 @@ class AvExport OutputFile
23
23
public:
24
24
OutputFile ( const std::string& file = " " );
25
25
26
- bool setup ();
26
+ virtual bool setup ();
27
27
28
- void addVideoStream ( const VideoDesc& videoDesc );
29
- void addAudioStream ( const AudioDesc& audioDesc );
28
+ virtual void addVideoStream ( const VideoDesc& videoDesc );
29
+ virtual void addAudioStream ( const AudioDesc& audioDesc );
30
30
31
- bool wrap ( const DataStream& data, const size_t streamId );
31
+ virtual bool wrap ( const DataStream& data, const size_t streamId );
32
32
33
33
private:
34
34
AVOutputFormat* outputFormat;
You can’t perform that action at this time.
0 commit comments