[Xine-vdpau] VC1

Christophe Thommeret hftom at free.fr
Mon Sep 28 16:03:41 CEST 2009


Le Monday 28 September 2009 16:02:28 Christophe Thommeret, vous avez écrit :
> Le Sunday 27 September 2009 22:20:35 Jose Alberto Reguero, vous avez écrit :
> > @@ -438,6 +439,7 @@
> >    }
> >    if ( info->picture_type == B_FRAME ) {
> >      tmp = read_bits( &sequence->br, 3 );
> > +    p->offbits -= 3;
> >      if ( tmp==7 ) {
> >        tmp = read_bits( &sequence->br, 7 );
> >        if ( tmp==127 )
>
> Consider offbits as private, better do:
>
> if ( info->picture_type == B_FRAME ) {
>     tmp = read_bits( &sequence->br, 3 );
>     if ( tmp==7 ) {
>       tmp = (tmp<<3) | read_bits( &sequence->br, 4 );
>       if ( tmp==127 )
>         info->picture_type = BI_FRAME;
>     }
>   }
>
> Thanx for the report.
> None of my vc1 samples triggered this bug :)

Well, (tmp<<4) is better :)

-- 
Christophe Thommeret




More information about the Xine-vdpau mailing list