We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdb849f commit 4866e54Copy full SHA for 4866e54
src/AvTranscoder/stream/InputStream.cpp
@@ -113,8 +113,7 @@ AVMediaType InputStream::getStreamType() const
113
114
double InputStream::getDuration() const
115
{
116
- // @todo: return stream duration, depending on its type (instead of format duration)
117
- return _inputFile->getProperties().getDuration();
+ return _inputFile->getProperties().getStreamPropertiesWithIndex( _streamIndex ).getDuration();
118
}
119
120
void InputStream::addPacket( AVPacket& packet )
0 commit comments