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:
xiaoyifang 2022-12-09 22:11:59 +08:00 committed by GitHub
commit fceee66f10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -186,7 +186,7 @@ bool DecoderContext::openCodec( QString & errorString )
int ret = 0; int ret = 0;
avformatOpened_ = true; avformatOpened_ = true;
ret = avformat_open_input( &formatContext_, "_STREAM_", NULL, NULL ); ret = avformat_open_input( &formatContext_, NULL, NULL, NULL );
if ( ret < 0 ) if ( ret < 0 )
{ {
errorString = QObject::tr( "avformat_open_input() failed: %1." ).arg( avErrorString( ret ) ); errorString = QObject::tr( "avformat_open_input() failed: %1." ).arg( avErrorString( ret ) );