fixed copy

Originally committed as revision 1535 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Fabrice Bellard 2003-02-02 19:51:40 +00:00
parent 0250738f13
commit fe2a4ca379

View File

@ -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;