2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/mythplayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1691,7 +1691,7 @@ void MythPlayer::AVSync(VideoFrame *buffer)
else if (buffer && is_interlaced(ps))
{
ps = kScan_Interlaced;
buffer->interlaced_reversed = m_scan == kScan_Intr2ndField;
buffer->interlaced_reversed = (m_scan == kScan_Intr2ndField);
}

// only display the second field if needed
Expand Down
6 changes: 3 additions & 3 deletions mythtv/libs/libmythtv/recorders/NuppelVideoRecorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ void NuppelVideoRecorder::InitBuffers(void)
vidbuf->freeToEncode = 0;
vidbuf->freeToBuffer = 1;
vidbuf->bufferlen = 0;
vidbuf->forcekey = 0;
vidbuf->forcekey = false;

m_videoBuffer.push_back(vidbuf);
}
Expand Down Expand Up @@ -2153,7 +2153,7 @@ void NuppelVideoRecorder::Reset(void)
vidbuf->timecode = 0;
vidbuf->freeToEncode = 0;
vidbuf->freeToBuffer = 1;
vidbuf->forcekey = 0;
vidbuf->forcekey = false;
}

for (int i = 0; i < m_audioBufferCount; i++)
Expand Down Expand Up @@ -2587,7 +2587,7 @@ void NuppelVideoRecorder::doWriteThread(void)
m_videoBuffer[m_actVideoEncode]->sample = 0;
m_videoBuffer[m_actVideoEncode]->freeToEncode = 0;
m_videoBuffer[m_actVideoEncode]->freeToBuffer = 1;
m_videoBuffer[m_actVideoEncode]->forcekey = 0;
m_videoBuffer[m_actVideoEncode]->forcekey = false;
m_actVideoEncode++;
if (m_actVideoEncode >= m_videoBufferCount)
m_actVideoEncode = 0;
Expand Down
6 changes: 3 additions & 3 deletions mythtv/libs/libmythtv/videobuffers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ void VideoBuffers::Init(uint NumDecode, bool ExtraForPause,
memset(At(i), 0, sizeof(VideoFrame));
At(i)->codec = FMT_NONE;
At(i)->interlaced_frame = -1;
At(i)->top_field_first = 1;
At(i)->top_field_first = true;
m_vbufferMap[At(i)] = i;
}

Expand Down Expand Up @@ -375,7 +375,7 @@ void VideoBuffers::ReleaseFrame(VideoFrame *Frame)
m_vpos = m_vbufferMap[Frame];
m_limbo.remove(Frame);
//non directrendering frames are ffmpeg handled
if (Frame->directrendering != 0)
if (Frame->directrendering)
m_decode.enqueue(Frame);
m_used.enqueue(Frame);
}
Expand Down Expand Up @@ -546,7 +546,7 @@ void VideoBuffers::Enqueue(BufferType Type, VideoFrame *Frame)
queue->remove(Frame);
queue->enqueue(Frame);
if (Type == kVideoBuffer_pause)
Frame->pause_frame = 1;
Frame->pause_frame = true;
m_globalLock.unlock();
}

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/videocolourspace.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class VideoColourSpace : public QObject, public QMatrix4x4, public ReferenceCoun
int m_colourSpaceDepth { 8 };
int m_range { AVCOL_RANGE_MPEG };
bool m_updatesDisabled { true };
int m_colourShifted { 0 };
bool m_colourShifted { false };
int m_colourTransfer { AVCOL_TRC_BT709 };
PrimariesMode m_primariesMode { PrimariesRelaxed };
int m_colourPrimaries { AVCOL_PRI_BT709 };
Expand Down