Commit fe2a4ca3 authored by Fabrice Bellard's avatar Fabrice Bellard

fixed copy

Originally committed as revision 1535 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 0250738f
......@@ -125,11 +125,11 @@ static int jpeg_read(ByteIOContext *f,
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;
......
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