[MPlayer-dev-eng] [PATCH] Hack to allow compilation to go further

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sun Apr 24 11:45:54 CEST 2011


On Sun, Apr 24, 2011 at 12:37:23AM +0200, Ingo Brückl wrote:
> Reimar Döffinger wrote on Sat, 23 Apr 2011 23:15:45 +0200:
> > On Sat, Apr 23, 2011 at 10:48:36PM +0200, Ingo Brückl wrote:
> >> @@ -827,7 +827,11 @@
> >>          }
> >>      }
> >>
> >> -    avctx->hurry_up=(flags&3)?((flags&2)?2:1):0;
> >> +    if (flags&3) {
> >> +        avctx->skip_frame=AVDISCARD_NONREF;
> >> +        if (flags&2)
> >> +            avctx->skip_idct=AVDISCARD_ALL;
> >> +    }
> 
> > This will end up never resetting the value.
> > It also creates a conflict with the existing options to
> > set these (and remember that these can also be set via the
> > generic o= option).
> 
> Another attempt.

I think that's correct. If you have checked it actually works
(e.g. add a printf to ensure the code is executed, them provoke
it by running a video with too high -speed for it to keep up,
use -framedrop and -hardframedrop to enable the feature -
best use a video with B-frames for the first and a MPEG-2 for
the second option) it can be applied.


More information about the MPlayer-dev-eng mailing list