Skip to content

Commit 5625a87

Browse files
author
Clement Champetier
committed
FileProperties: removed seek at the beginning when extractStreamProperties
* These instructions make analysis impossible for some AVC Intra media. * WARNING: need to check if this commit induces some side effects.
1 parent c8ddd63 commit 5625a87

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/AvTranscoder/properties/FileProperties.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ void FileProperties::extractStreamProperties(IProgress& progress, const EAnalyse
3131
{
3232
clearStreamProperties();
3333

34-
// if the analysis level wiil decode some streams parts, seek at the beginning
35-
if(level > eAnalyseLevelHeader)
36-
const_cast<FormatContext*>(_formatContext)->seek(0, AVSEEK_FLAG_BACKWARD);
37-
3834
for(size_t streamIndex = 0; streamIndex < _formatContext->getNbStreams(); ++streamIndex)
3935
{
4036
switch(_formatContext->getAVStream(streamIndex).codec->codec_type)
@@ -118,10 +114,6 @@ void FileProperties::extractStreamProperties(IProgress& progress, const EAnalyse
118114
const size_t unknownStreamIndex = _unknownStreams.at(streamIndex).getStreamIndex();
119115
_streams[unknownStreamIndex] = &_unknownStreams.at(streamIndex);
120116
}
121-
122-
// if the analysis level has decoded some streams parts, return at the beginning
123-
if(level > eAnalyseLevelHeader)
124-
const_cast<FormatContext*>(_formatContext)->seek(0, AVSEEK_FLAG_BACKWARD);
125117
}
126118

127119
std::string FileProperties::getFilename() const

0 commit comments

Comments
 (0)