Ticket #5324: mythtv-vid-27.diff

File mythtv-vid-27.diff, 909 bytes (added by anonymous, 16 years ago)

Small fix when using bobdeint and opengl renderer (get the fields the right way around)

  • libs/libmythtv/openglvideo.cpp

    diff -ur -X excl mythtv-vid-26/libs/libmythtv/openglvideo.cpp mythtv-vid-27/libs/libmythtv/openglvideo.cpp
    old new  
    828828            (filter->outputBuffer == kDefaultBuffer))
    829829        {
    830830            float bob = (trueheight / (float)video_dim.height()) / 4.0f;
    831             if (scan == kScan_Interlaced)
     831            if (scan == kScan_Intr2ndField)
    832832            {
    833833                t_top /= 2;
    834834                t_bottom /= 2;
    835835                t_bottom += bob;
    836836                t_top    += bob;
    837837            }
    838             if (scan == kScan_Intr2ndField)
     838            if (scan == kScan_Interlaced)
    839839            {
    840840                t_top = (trueheight / 2) + (t_top / 2);
    841841                t_bottom = (trueheight / 2) + (t_bottom / 2);