Skip to content

Commit 6f7f62d

Browse files
author
Clement Champetier
committed
FormatContext: load options specific to the format when demuxing
Issue #92
1 parent 2fd9834 commit 6f7f62d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/AvTranscoder/file/FormatContext.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ FormatContext::FormatContext( const std::string& filename, int req_flags, AVDict
2121
throw std::ios_base::failure( msg );
2222
}
2323
_isOpen = true;
24+
2425
loadOptions( _options, _avFormatContext, req_flags );
26+
// when demuxing, priv_data of AVFormatContext is set by avformat_open_input()
27+
loadOptions( _options, _avFormatContext->priv_data, req_flags );
2528
}
2629

2730
FormatContext::FormatContext( int req_flags )

0 commit comments

Comments
 (0)