Originally committed as revision 1535 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Fabrice Bellard 22 years ago
parent 0250738f13
commit fe2a4ca379
  1. 6
      libavformat/jpeg.c

@ -125,11 +125,11 @@ static int jpeg_read(ByteIOContext *f,
switch(c->pix_fmt) { switch(c->pix_fmt) {
default: default:
case PIX_FMT_YUV420P: case PIX_FMT_YUV420P:
w >>= 1; w = (w + 1) >> 1;
h >>= 1; h = (h + 1) >> 1;
break; break;
case PIX_FMT_YUV422P: case PIX_FMT_YUV422P:
w >>= 1; w = (w + 1) >> 1;
break; break;
case PIX_FMT_YUV444P: case PIX_FMT_YUV444P:
break; break;

Loading…
Cancel
Save