[FFmpeg-devel] [PATCH] Rl2 Video decoder

Sascha Sommer saschasommer
Sun Mar 16 17:44:21 CET 2008


Hi,

On Sonntag, 16. M?rz 2008, Reimar D?ffinger wrote:
> Hello,
>
> On Sun, Mar 16, 2008 at 04:08:54PM +0100, Sascha Sommer wrote:
> > > > > > > +             if(s->back_frame){
> > > > > > > +                 if(tag == 0x00 || tag == 0x80)
> > > > > > > +                     val = s->back_frame[back_pos];
> > > > > > > +                 else
> > > > > > > +                     val = tag | 0x80;
> > > > > > > +             }else{
> >
> > Ah
> >
> >                if(tag < 0x80)
> >                     val = tag;
> >               else if(tag == 0x80)
> >                     val = 0;
> >               else
> >                     val = tag & 0x7F;
> >
> >
> > ==          val = tag & ~0x80
>
> And I think above quoted might be simpler as
>
> > val = tag | 0x80;
> > if (val == 0x80)
> >   val = s->back_frame[back_pos];
>
> too?

In this version yes. Anyway I meanwhile did  some more changes.

Regards

Sascha
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rl2_decoder_try3.patch
Type: text/x-diff
Size: 7995 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080316/7375ebfd/attachment.patch>



More information about the ffmpeg-devel mailing list