[FFmpeg-cvslog] r16011 - trunk/libavcodec/aasc.c

Kostya kostya.shishkov
Sat Dec 6 13:59:10 CET 2008


On Sat, Dec 06, 2008 at 11:59:19AM +0100, Michael Niedermayer wrote:
> On Sat, Dec 06, 2008 at 09:57:31AM +0100, kostya wrote:
> > Author: kostya
> > Date: Sat Dec  6 09:57:31 2008
> > New Revision: 16011
> > 
> > Log:
> > AASC can contain raw data in addition to MS-RLE
> > 
> > Modified:
> >    trunk/libavcodec/aasc.c
> > 
> > Modified: trunk/libavcodec/aasc.c
> > ==============================================================================
> > --- trunk/libavcodec/aasc.c	(original)
> > +++ trunk/libavcodec/aasc.c	Sat Dec  6 09:57:31 2008
> > @@ -62,6 +62,7 @@ static int aasc_decode_frame(AVCodecCont
> >                                const uint8_t *buf, int buf_size)
> >  {
> >      AascContext *s = avctx->priv_data;
> > +    int compr, i, stride;
> >  
> >      s->frame.reference = 1;
> >      s->frame.buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE;
> > @@ -70,7 +71,24 @@ static int aasc_decode_frame(AVCodecCont
> >          return -1;
> >      }
> >  
> > -    ff_msrle_decode(avctx, &s->frame, 8, buf, buf_size);
> 
> > +    compr = AV_RL32(buf);
> > +    buf += 4;
> 
> bytestream_get_

too lazy to do that for single call
 
> [...]
> -- 
> Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB




More information about the ffmpeg-cvslog mailing list