Ticket #12996: 0007-Fix-compiler-comparison-of-unsigned-expression-0-is-.patch

File 0007-Fix-compiler-comparison-of-unsigned-expression-0-is-.patch, 869 bytes (added by David Hampton <mythtv@…>, 3 years ago)

Fix 'comparison of unsigned expression' warning.

  • mythtv/libs/libmythtv/recorders/v4l2encstreamhandler.cpp

    Fix compiler 'comparison of unsigned expression >= 0 is always true'
    warning.
    
    ---
     mythtv/libs/libmythtv/recorders/v4l2encstreamhandler.cpp | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/mythtv/libs/libmythtv/recorders/v4l2encstreamhandler.cpp b/mythtv/libs/libmythtv/recorders/v4l2encstreamhandler.cpp
    index f4cd81c..1196211 100644
    a b bool V4L2encStreamHandler::Configure(void) 
    444444    if (m_aspect_ratio >= 0)
    445445        m_v4l2.SetVideoAspect(m_aspect_ratio);
    446446
    447     if (m_bitrate_mode < 0 && m_high_bitrate_mode >= 0)
     447    if (m_bitrate_mode < 0)
    448448        m_bitrate_mode = m_high_bitrate_mode;
    449449    if (m_max_bitrate < 0 && m_high_peak_bitrate > 0)
    450450        m_max_bitrate = m_high_peak_bitrate;