[FFmpeg-devel] remove int readers

Michael Niedermayer michaelni
Sat Jun 23 18:16:44 CEST 2007


Hi

On Sat, Jun 23, 2007 at 09:32:12AM -0400, Ronald S. Bultje wrote:
> 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).

iam fine with the patch (assuming none of the maintainers of the changed files
has objections)

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

When you are offended at any man's fault, turn to yourself and study your
own failings. Then you will forget your anger. -- Epictetus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070623/a8be410e/attachment.pgp>



More information about the ffmpeg-devel mailing list