Skip to content

Commit cdc7c4b

Browse files
author
Clement Champetier
committed
FileProperties: added seek at the beginning of the stream before any analysis
1 parent 347d6ec commit cdc7c4b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/AvTranscoder/properties/FileProperties.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ FileProperties::FileProperties(const FormatContext& formatContext)
3030

3131
void FileProperties::extractStreamProperties(IProgress& progress, const EAnalyseLevel level)
3232
{
33+
// Returns at the beginning of the stream before any analysis
34+
const_cast<FormatContext*>(_formatContext)->seek(0, AVSEEK_FLAG_BYTE);
35+
3336
// clear properties
3437
clearStreamProperties();
3538

0 commit comments

Comments
 (0)