Skip to content

Commit

Permalink
SPDIFEncoder: Fix Coverity ID 700795 Uninitialized scalar field
Browse files Browse the repository at this point in the history
In SPDIFEncoder::SPDIFEncoder(QString, int): There are a couple of code paths
were m_buffer can be left uninitialised so clear it to keep Coverity happy.
  • Loading branch information
Paul Harrison committed Jun 20, 2013
1 parent 7d5d1bd commit b054659
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mythtv/libs/libmyth/audio/spdifencoder.cpp
Expand Up @@ -24,6 +24,8 @@ extern "C" {
SPDIFEncoder::SPDIFEncoder(QString muxer, int codec_id)
: m_complete(false), m_oc(NULL), m_stream(NULL), m_size(0)
{
memset(&m_buffer, 0 , sizeof(m_buffer));

QByteArray dev_ba = muxer.toLatin1();
AVOutputFormat *fmt;

Expand Down

0 comments on commit b054659

Please sign in to comment.