Skip to content

Commit 87322aa

Browse files
seek before and after get properties on media
1 parent aa1949e commit 87322aa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/AvTranscoder/InputFile.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ InputFile& InputFile::analyse()
7171
{
7272
assert( m_formatContext != NULL );
7373

74+
seekAtFrame( 0 );
75+
7476
m_properties.filename = m_formatContext->filename;
7577
m_properties.formatName = m_formatContext->iformat->name;
7678
m_properties.formatLongName = m_formatContext->iformat->long_name;
@@ -129,6 +131,8 @@ InputFile& InputFile::analyse()
129131
}
130132
}
131133

134+
seekAtFrame( 0 );
135+
132136
return *this;
133137
}
134138

0 commit comments

Comments
 (0)