From f8ed6d2bc52b59551cada4aafc877e1dd37e2c2a Mon Sep 17 00:00:00 2001 From: xiaoyifang Date: Fri, 9 Dec 2022 15:37:33 +0800 Subject: [PATCH] ffmpeg , replace avformat_open_input's second parameter to NULL the 2nd parameter is useless when context->pd is not null --- ffmpegaudio.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffmpegaudio.cc b/ffmpegaudio.cc index 60e21213..5674b432 100644 --- a/ffmpegaudio.cc +++ b/ffmpegaudio.cc @@ -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 ) );