mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
ffmpeg , replace avformat_open_input's second parameter to NULL
the 2nd parameter is useless when context->pd is not null
This commit is contained in:
parent
7eef001eca
commit
f8ed6d2bc5
|
@ -186,7 +186,7 @@ bool DecoderContext::openCodec( QString & errorString )
|
|||
int ret = 0;
|
||||
avformatOpened_ = true;
|
||||
|
||||
ret = avformat_open_input( &formatContext_, "_STREAM_", NULL, NULL );
|
||||
ret = avformat_open_input( &formatContext_, NULL, NULL, NULL );
|
||||
if ( ret < 0 )
|
||||
{
|
||||
errorString = QObject::tr( "avformat_open_input() failed: %1." ).arg( avErrorString( ret ) );
|
||||
|
|
Loading…
Reference in a new issue