Ticket #4606: 4606.diff

File 4606.diff, 914 bytes (added by paulh, 18 years ago)

Possible fix

  • libs/libmythtv/avformatdecoder.cpp

     
    18501850        GetNVP()->ReinitAudio();
    18511851    }
    18521852
     1853    // if we don't have a video stream we still need to make sure some
     1854    // video params are set properly
     1855    if (selectedVideoIndex == -1)
     1856    {
     1857        QString tvformat = gContext->GetSetting("TVFormat").lower();
     1858        if (tvformat == "ntsc" || tvformat == "ntsc-jp" ||
     1859            tvformat == "pal-m" || tvformat == "atsc")
     1860        {
     1861            fps = 29.97;
     1862            GetNVP()->SetVideoParams(-1, -1, 29.97, 1);
     1863        }
     1864        else
     1865        {
     1866            fps = 25.0;
     1867            GetNVP()->SetVideoParams(-1, -1, 25.0, 1);
     1868        }
     1869    }
     1870
    18531871    if (GetNVP()->IsErrored())
    18541872        scanerror = -1;
    18551873