Commit c5ffd7ae authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/mjpegdec: use FF_CEIL_RSHIFT() for width

No testcase known
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent b6e8f10b
......@@ -2101,7 +2101,7 @@ the_end:
if (!(s->upscale_h & (1<<p)))
continue;
if (p==1 || p==2) {
w >>= hshift;
w = FF_CEIL_RSHIFT(w, hshift);
h = FF_CEIL_RSHIFT(h, vshift);
}
if (s->upscale_v & (1<<p))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment