File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
src/AvTranscoder/transcoder Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -277,7 +277,7 @@ void Transcoder::process( IProgress& progress )
277
277
278
278
preProcessCodecLatency ();
279
279
280
- double totalDuration = getTotalDurationFromProcessMethod ();
280
+ double totalDuration = getOutputDuration ();
281
281
282
282
size_t frame = 0 ;
283
283
bool frameProcessed = true ;
@@ -478,7 +478,7 @@ double Transcoder::getMaxTotalDuration() const
478
478
return maxTotalDuration;
479
479
}
480
480
481
- double Transcoder::getTotalDurationFromProcessMethod () const
481
+ double Transcoder::getOutputDuration () const
482
482
{
483
483
switch ( _eProcessMethod )
484
484
{
Original file line number Diff line number Diff line change @@ -146,26 +146,25 @@ class AvExport Transcoder
146
146
147
147
/* *
148
148
* @brief Get the duration of the stream.
149
+ * @note If the stream is a generator, return limit of double.
149
150
*/
150
151
double getStreamDuration ( size_t indexStream ) const ;
151
152
152
153
/* *
153
154
* @brief Get the duration of the shortest stream.
154
- * @note if there is only generated streams, return limit of double.
155
155
*/
156
156
double getMinTotalDuration () const ;
157
157
158
158
/* *
159
159
* @brief Get the duration of the longest stream.
160
- * @note if there is only generated streams, return limit of double.
161
160
*/
162
161
double getMaxTotalDuration () const ;
163
162
164
163
/* *
165
164
* @brief Get the duration of the output program
166
165
* @note Depends on the streams, the process method, and the main stream index.
167
166
*/
168
- double getTotalDurationFromProcessMethod () const ;
167
+ double getOutputDuration () const ;
169
168
170
169
/* *
171
170
* @brief Set for each StreamTranscoder if it is an infinity stream (switch to generator at the end of the stream).
You can’t perform that action at this time.
0 commit comments