mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
avcodec/h263dec: use FF_CEIL_RSHIFT()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
9a271a9368
commit
b99d3613cf
@ -762,8 +762,8 @@ intrax8_decoded:
|
|||||||
int x, y, p;
|
int x, y, p;
|
||||||
av_frame_make_writable(pict);
|
av_frame_make_writable(pict);
|
||||||
for (p=0; p<3; p++) {
|
for (p=0; p<3; p++) {
|
||||||
int w = -((-pict-> width)>>!!p);
|
int w = FF_CEIL_RSHIFT(pict-> width, !!p);
|
||||||
int h = -((-pict->height)>>!!p);
|
int h = FF_CEIL_RSHIFT(pict->height, !!p);
|
||||||
int linesize = pict->linesize[p];
|
int linesize = pict->linesize[p];
|
||||||
for (y=0; y<(h>>1); y++)
|
for (y=0; y<(h>>1); y++)
|
||||||
for (x=0; x<w; x++)
|
for (x=0; x<w; x++)
|
||||||
|
Loading…
Reference in New Issue
Block a user