Skip to content

Commit 1813ed5

Browse files
author
Clement Champetier
committed
OutputFile: clean wrap method
Add const keyword!
1 parent 3c11691 commit 1813ed5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/AvTranscoder/file/OutputFile.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,16 +155,16 @@ IOutputStream::EWrappingStatus OutputFile::wrap( const CodedData& data, const si
155155
// free packet.side_data, set packet.data to NULL and packet.size to 0
156156
av_free_packet( &packet );
157157

158-
double currentStreamDuration = _outputStreams.at( streamId )->getStreamDuration();
158+
const double currentStreamDuration = _outputStreams.at( streamId )->getStreamDuration();
159159
if( currentStreamDuration < _previousProcessedStreamDuration )
160160
{
161161
// if the current stream is strictly shorter than the previous, wait for more data
162162
return IOutputStream::eWrappingWaitingForData;
163163
}
164164

165165
_previousProcessedStreamDuration = currentStreamDuration;
166-
167166
_frameCount.at( streamId )++;
167+
168168
return IOutputStream::eWrappingSuccess;
169169
}
170170

0 commit comments

Comments
 (0)