File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ OutputFile::OutputFile( const std::string& filename )
15
15
, _previousProcessedStreamDuration( 0.0 )
16
16
{
17
17
_formatContext.setOutputFormat ( _filename );
18
- _formatContext.openRessource ( _filename, AVIO_FLAG_WRITE );
19
18
}
20
19
21
20
OutputFile::~OutputFile ()
@@ -90,9 +89,12 @@ bool OutputFile::beginWrap( )
90
89
{
91
90
LOG_DEBUG ( " Begin wrap of OutputFile" )
92
91
92
+ _formatContext.openRessource ( _filename, AVIO_FLAG_WRITE );
93
93
_formatContext.writeHeader ();
94
+
94
95
_frameCount.clear ();
95
96
_frameCount.resize ( _outputStreams.size (), 0 );
97
+
96
98
return true ;
97
99
}
98
100
Original file line number Diff line number Diff line change @@ -33,8 +33,16 @@ class AvExport OutputFile : public IOutputFile
33
33
IOutputStream& addAudioStream ( const AudioCodec& audioDesc );
34
34
IOutputStream& addDataStream ( const DataCodec& dataDesc );
35
35
36
+ /* *
37
+ * @brief Open ressource and write header.
38
+ */
36
39
bool beginWrap ();
40
+
37
41
IOutputStream::EWrappingStatus wrap ( const CodedData& data, const size_t streamId );
42
+
43
+ /* *
44
+ * @brief Close ressource and write trailer.
45
+ */
38
46
bool endWrap ();
39
47
40
48
/* *
You can’t perform that action at this time.
0 commit comments