Browse Source

demoddvb: Initialize player info before checking player

Value-initialize the local DTVVideoPlayer::Info object in
displayPlayerInfo() so its members are initialized when no
player instance is available.

Coverity CID 657528 identified a possible uninitialized read
of m_audioFrames.

Signed-off-by: Robin Getz <rgetz503@gmail.com>
chirpmodem-v8.1.0
Robin Getz 4 weeks ago
parent
commit
bbbcf9260f
No known key found for this signature in database
GPG Key ID: 51C7231FFED0E060
  1. 2
      plugins/channelrx/demoddvb/dvbdemodgui.cpp

2
plugins/channelrx/demoddvb/dvbdemodgui.cpp

@ -2801,7 +2801,7 @@ QString DVBDemodGUI::shortCodecName(const QString& name) @@ -2801,7 +2801,7 @@ QString DVBDemodGUI::shortCodecName(const QString& name)
// The codecs and picture size in the table, the A/V problems, and the mute button green while audio is playing
void DVBDemodGUI::displayPlayerInfo(uint64_t tsOverflows)
{
DTVVideoPlayer::Info info;
DTVVideoPlayer::Info info{};
if (m_player) {
info = m_player->getInfo();

Loading…
Cancel
Save