[FFmpeg-devel] remove int readers

Ronald S. Bultje rsbultje
Sat Jun 23 15:32:12 CEST 2007


Hi,

On 6/23/07, Michael Niedermayer <michaelni at gmx.at> wrote:
>
> > @@ -694,15 +694,9 @@
> >
> >  static int64_t get_pts(const uint8_t *p)
> >  {
> > -    int64_t pts;
> > -    int val;
> > -
> > -    pts = (int64_t)((p[0] >> 1) & 0x07) << 30;
> > -    val = (p[1] << 8) | p[2];
> > -    pts |= (int64_t)(val >> 1) << 15;
> > -    val = (p[3] << 8) | p[4];
> > -    pts |= (int64_t)(val >> 1);
> > -    return pts;
> > +    return ((int64_t)((p[0] >> 1) & 0x07)   << 30) |
> > +                     ((AV_RB16(p + 1) >> 1) << 15) |
> > +                      (AV_RB16(p + 3) >> 1);
> >  }
>
> i see


I changed it to be more like above again (and removed the applied parts).

Ronald
-------------- next part --------------
A non-text attachment was scrubbed...
Name: remove-intreaders.patch
Type: application/octet-stream
Size: 7312 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070623/eade73d1/attachment.obj>



More information about the ffmpeg-devel mailing list