aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h263dec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-08-24 04:09:43 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-08-24 04:09:43 +0200
commitb99d3613cfdb5714a3c0e18b0db209280d879a10 (patch)
tree57208520446d11e27cb16cec5a71ff788d858081 /libavcodec/h263dec.c
parent9a271a9368eaabf99e6c2046103acb33957e63b7 (diff)
downloadffmpeg-b99d3613cfdb5714a3c0e18b0db209280d879a10.tar.gz
avcodec/h263dec: use FF_CEIL_RSHIFT()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h263dec.c')
-rw-r--r--libavcodec/h263dec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c
index 3fe37e95a8..faa54f57e1 100644
--- a/libavcodec/h263dec.c
+++ b/libavcodec/h263dec.c
@@ -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++)