Skip to content

Commit f393222

Browse files
get correct informations in wrapper from streams
1 parent 17017cc commit f393222

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/AvTranscoder/InputStreamVideo.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ bool InputStreamVideo::setup( const std::string& filename, const size_t streamIn
3636
return false;
3737
}
3838

39+
// update format context informations from streams
40+
if( avformat_find_stream_info( formatContext, NULL ) < 0 )
41+
{
42+
return false;
43+
}
44+
3945
size_t videoStreamCount = 0;
4046
for( size_t streamId = 0; streamId < formatContext->nb_streams; streamId++ )
4147
{

0 commit comments

Comments
 (0)