avcodec/h263dec: use FF_CEIL_RSHIFT()
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 24 Aug 2013 02:09:43 +0000 (04:09 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 24 Aug 2013 02:09:43 +0000 (04:09 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/h263dec.c

index 3fe37e9..faa54f5 100644 (file)
@@ -762,8 +762,8 @@ intrax8_decoded:
             int x, y, p;
             av_frame_make_writable(pict);
             for (p=0; p<3; p++) {
-                int w = -((-pict-> width)>>!!p);
-                int h = -((-pict->height)>>!!p);
+                int w = FF_CEIL_RSHIFT(pict-> width, !!p);
+                int h = FF_CEIL_RSHIFT(pict->height, !!p);
                 int linesize = pict->linesize[p];
                 for (y=0; y<(h>>1); y++)
                     for (x=0; x<w; x++)