Mercurial > libavformat.hg
changeset 48:e308ea014922 libavformat
fixed copy
author | bellard |
---|---|
date | Sun, 02 Feb 2003 19:51:40 +0000 |
parents | 45308962220f |
children | 3e7e13e08b27 |
files | jpeg.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/jpeg.c Sun Feb 02 19:18:09 2003 +0000 +++ b/jpeg.c Sun Feb 02 19:51:40 2003 +0000 @@ -125,11 +125,11 @@ switch(c->pix_fmt) { default: case PIX_FMT_YUV420P: - w >>= 1; - h >>= 1; + w = (w + 1) >> 1; + h = (h + 1) >> 1; break; case PIX_FMT_YUV422P: - w >>= 1; + w = (w + 1) >> 1; break; case PIX_FMT_YUV444P: break;