mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
Merge pull request #250 from xiaoyifang/fix/ffmpeg-minor-fix
ffmpeg , replace avformat_open_input's second parameter to NULL
This commit is contained in:
commit
fceee66f10
|
@ -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