Ticket #5749: t5749_proposed_fix.diff

File t5749_proposed_fix.diff, 1.3 KB (added by gigem, 17 years ago)
  • libs/libmythtv/avformatdecoder.cpp

     
    23462346            bool changed = (seqFPS > fps+0.01) || (seqFPS < fps-0.01);
    23472347            changed |= (width  != (uint)current_width );
    23482348            changed |= (height != (uint)current_height);
    2349             changed |= (aspect != current_aspect);
     2349            changed |= ((aspect > current_aspect+0.001) ||
     2350                        (aspect < current_aspect-0.001));
    23502351
    23512352            if (changed)
    23522353            {
     
    24232424        bool changed = (seqFPS > fps+0.01) || (seqFPS < fps-0.01);
    24242425        changed |= (width  != (uint)current_width );
    24252426        changed |= (height != (uint)current_height);
    2426         changed |= (aspect_ratio != current_aspect);
     2427        changed |= ((aspect_ratio > current_aspect+0.001) ||
     2428                    (aspect_ratio < current_aspect-0.001));
    24272429
    24282430        if (changed)
    24292431        {
     
    30883090
    30893091        if (gotvideo)
    30903092        {
    3091             if (lowbuffers && onlyvideo == 0 &&
     3093            if (onlyvideo == 0 &&
    30923094                lastapts < lastvpts + 100 &&
    30933095                lastapts > lastvpts - 10000 &&
    30943096                !ringBuffer->InDVDMenuOrStillFrame())