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:
xiaoyifang 2022-12-09 15:37:33 +08:00
parent 7eef001eca
commit f8ed6d2bc5

View file

@ -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 ) );