[FFmpeg-devel] [PATCH] Rl2 Video decoder
Reimar Döffinger
Reimar.Doeffinger
Sun Mar 16 16:15:35 CET 2008
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?
More information about the ffmpeg-devel
mailing list